Merge branch 'nd/parseopt-completion' into next
[gitweb.git] / git-filter-branch.sh
index 98c76ec589b053c112ddc86b6821f2acf17b7ab0..2587a01b9b4fa0344c695cb635e6eed26257e9f8 100755 (executable)
@@ -310,7 +310,7 @@ git rev-list --reverse --topo-order --default HEAD \
        die "Could not get the commits"
 commits=$(wc -l <../revs | tr -d " ")
 
-test $commits -eq 0 && die "Found nothing to rewrite"
+test $commits -eq 0 && die_with_status 2 "Found nothing to rewrite"
 
 # Rewrite the commits
 report_progress ()