Skip to content

Commit 263ebf2

Browse files
committed
Tighten git-gc and git-nw-repack patterns to avoid false positives
1 parent 118ede1 commit 263ebf2

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 pid,args | grep -q -e 'git[ -].*nw-repac[k]' -e 'git[ -].*g[c]'; then
8080
sleep 1
8181
sanity=\$(( sanity + 1 ))
8282
else

0 commit comments

Comments
 (0)