]> git.phdru.name Git - git-scripts.git/blobdiff - ls-not-pushed
Test grep error code, not output
[git-scripts.git] / ls-not-pushed
index 7e9bb4e59f172f61605966b9d1fb5e0273b4429b..bce8858e4e7bd9e155dd2649b0f0ddf73baa3af0 100755 (executable)
@@ -2,5 +2,4 @@
 
 exec "`dirname \"$0\"`"/do-all \
    'test "$g" = "$d/.git" || continue; cd "$d" &&' \
-   'test -n "`git status --branch --short | grep "ahead\|behind"`" &&
-   echo "$d"'
+   'git status --branch --short | grep -q "ahead\|behind" && echo "$d"'