From 76fc67b9fd12ed249a434c49c9607426d76ca489 Mon Sep 17 00:00:00 2001 From: Andy Zhang Date: Mon, 14 Nov 2016 11:30:06 -0800 Subject: [PATCH] Bump git index depth to 5 for golang src structure --- lib/git/repo_index.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git/repo_index.sh b/lib/git/repo_index.sh index bf37b55..c77d115 100644 --- a/lib/git/repo_index.sh +++ b/lib/git/repo_index.sh @@ -127,7 +127,7 @@ _git_index_dirs_without_home() { function _find_git_repos() { # Find all unarchived projects IFS=$'\n' - for repo in $(find -L "$GIT_REPO_DIR" -maxdepth 4 -name ".git" -type d \! -wholename '*/archive/*'); do + for repo in $(find -L "$GIT_REPO_DIR" -maxdepth 5 -name ".git" -type d \! -wholename '*/archive/*'); do echo ${repo%/.git} # Return project folder, with trailing ':' _find_git_submodules $repo # Detect any submodules done