Bump git index depth to 5 for golang src structure

This commit is contained in:
Andy Zhang
2016-11-14 11:30:06 -08:00
parent ac6a7808b7
commit 76fc67b9fd

View File

@@ -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