git-fetch --upload-pack: disambiguate.
[gitweb.git] / git-whatchanged.sh
index 80e2500e0ea1769d9d92454c667852dd2056ef04..d4f985b5eb2f64e597e820c04e510f0f81692a6a 100755 (executable)
@@ -4,7 +4,7 @@ USAGE='[-p] [--max-count=<n>] [<since>..<limit>] [--pretty=<format>] [-m] [git-d
 SUBDIRECTORY_OK='Yes'
 . git-sh-setup
 
-diff_tree_flags=$(git-rev-parse --sq --no-revs --flags "$@")
+diff_tree_flags=$(git-rev-parse --sq --no-revs --flags "$@") || exit
 test -z "$diff_tree_flags" &&
        diff_tree_flags=$(git-repo-config --get whatchanged.difftree)
 test -z "$diff_tree_flags" &&