commit | cc1f7e9e3ce0a2327ee30fac215539ff5ec97323 | [log] [tgz] |
---|---|---|
author | Thomas Dräbing <thomas.draebing@sap.com> | Mon Sep 18 13:51:52 2023 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Sep 18 13:51:52 2023 +0000 |
tree | ae946813e6d091b452da55eac2dc305ab1da53a2 | |
parent | 341f8e878deae834a35fb2a13b9fbb993ade5727 [diff] | |
parent | e2a6b176c76c2b3fe70f8c39e5d285e30ba38f45 [diff] |
Merge "Don't search for nested repositories during git-gc"
diff --git a/container-images/git-gc/tools/gc.sh b/container-images/git-gc/tools/gc.sh index 6dfd665..2b1c17c 100755 --- a/container-images/git-gc/tools/gc.sh +++ b/container-images/git-gc/tools/gc.sh
@@ -93,7 +93,7 @@ gc_all_projects() { - for d in $(cd $TOP && find . -type d -name "*.git" | cut -c3- -) + for d in $(cd $TOP && find . -type d -path "*.git" -prune -o -name "*.git" | cut -c3- -) do gc_project "$d" done