Skip to content

Commit

Permalink
gc local bare repo remotes afterwards
Browse files Browse the repository at this point in the history
  • Loading branch information
mirabilos committed Aug 2, 2021
1 parent 94c4a15 commit 0bcc292
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cvs2git
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,12 @@ for rem in "${remote[@]}"; do
$git remote remove target || die "git remote failed with errorlevel $?"
done
print -u2 "I: $SECONDS seconds elapsed after pushing"
for rem in "${remote[@]}"; do
[[ $rem = /* ]] || continue
print -ru2 "D: gc’ing $rem"
cd "$rem" && $git gc
done
print -u2 "I: $SECONDS seconds elapsed after gc’ing"

cd /
rm -rf "$T"
Expand Down

0 comments on commit 0bcc292

Please sign in to comment.