Change maxdepth to 3 in _find_git_repos (c --rebuild was taking too long)

This commit is contained in:
Nathan Broadbent
2018-12-18 21:27:04 +07:00
parent 77e5e3776c
commit 5bc863284b

View File

@@ -126,7 +126,7 @@ _git_index_dirs_without_home() {
function _find_git_repos() {
# Find all unarchived projects
local IFS=$'\n'
for repo in $(find -L "$GIT_REPO_DIR" -maxdepth 5 -name ".git" -type d \! -wholename '*/archive/*'); do
for repo in $(find -L "$GIT_REPO_DIR" -maxdepth 3 -name ".git" -type d \! -wholename '*/archive/*'); do
echo ${repo%/.git} # Return project folder, with trailing ':'
_find_git_submodules $repo # Detect any submodules
done