Skip to content

Commit cfd22bd

Browse files
committed
Minor changes to git-flush
1 parent 9a68402 commit cfd22bd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

git-flush

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@
44
# as possible, by dropping all reflogs, stashes, and other cruft that may
55
# be bloating your pack files.
66

7-
rm -fr .git/refs/original
8-
rm -fr .git/refs/snapshots
7+
/bin/rm -fr .git/refs/original
8+
/bin/rm -fr .git/refs/snapshots
99

1010
if [ -f .git/info/refs ]; then
1111
perl -i -ne 'print unless /refs\/original/;' .git/info/refs
12+
perl -i -ne 'print unless /refs\/snapshots/;' .git/info/refs
1213
fi
1314
if [ -f .git/packed-refs ]; then
1415
perl -i -ne 'print unless /refs\/original/;' .git/packed-refs
16+
perl -i -ne 'print unless /refs\/snapshots/;' .git/packed-refs
1517
fi
1618

1719
git reflog expire --expire=0 --all

0 commit comments

Comments
 (0)