summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0327062)
raw | patch | inline | side by side (parent: 0327062)
author | Junio C Hamano <gitster@pobox.com> | |
Thu, 20 Dec 2007 20:58:06 +0000 (12:58 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 20 Dec 2007 20:58:06 +0000 (12:58 -0800) |
Earlier conversion of shell scripts to parse-options made usage()
to run "git cmd -h" which in turn emit LONG_USAGE and exit with 0
status. This is inconsistent with the scripts that do not use
parse-options, whose usage() died with the message, exiting with 1.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
to run "git cmd -h" which in turn emit LONG_USAGE and exit with 0
status. This is inconsistent with the scripts that do not use
parse-options, whose usage() died with the message, exiting with 1.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-sh-setup.sh | patch | blob | history |
diff --git a/git-sh-setup.sh b/git-sh-setup.sh
index 270d559297259d8a94f7b5b25b87649d00139e84..aae14090bd884920c7b5cb7530db66719df98ddd 100755 (executable)
--- a/git-sh-setup.sh
+++ b/git-sh-setup.sh
if test -n "$OPTIONS_SPEC"; then
usage() {
- exec "$0" -h
+ "$0" -h
+ exit 1
}
parseopt_extra=