Skip to content

Commit d3c442f

Browse files
committed
Merge pull request #24 from github/fix-gc-patterns
Tighten up git gc / git nw-repack matching patterns
2 parents 5d3c1d0 + fa68311 commit d3c442f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

share/github-backup-utils/ghe-backup-repositories-rsync

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ echo "
7676
while [ \$sanity -lt $GHE_GIT_COOLDOWN_PERIOD ]; do
7777
# note: the bracket synta[x] below is to prevent matches against the
7878
# grep process itself.
79-
if ps axo pid,args | grep -q -e 'git.*nw-repac[k]' -e 'git.*g[c]'; then
79+
if ps axo args | grep -q -E -e '^git( -.*)? nw-repac[k]( |$)' -e '^git( -.*)? g[c]( |$)'; then
8080
sleep 1
8181
sanity=\$(( sanity + 1 ))
8282
else

0 commit comments

Comments
 (0)