Skip to content

Commit

Permalink
Let gc kick in automatically, should speedup and increase depth in ca…
Browse files Browse the repository at this point in the history
…se there are many updates
  • Loading branch information
alfrix committed Oct 15, 2018
1 parent 13694d7 commit b17223a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions update_modules.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
thumbdir=$(pwd)
for d in */
do
echo ----
echo "$d"
echo ----
cd "$thumbdir"/"$d"
git checkout master
git pull origin master --depth=1
git gc --prune=all
done
thumbdir=$(pwd)
for d in */
do
echo ----
echo "$d"
echo ----
cd "$thumbdir"/"$d"
git checkout master
git pull origin master --depth=20
#git gc --prune=all
done

0 comments on commit b17223a

Please sign in to comment.