diff options
author | Junio C Hamano <junkio@cox.net> | 2005-11-27 23:15:02 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-28 23:13:03 -0800 |
commit | 1abacf3b5b53f6cde7148862234d451cd88d0de3 (patch) | |
tree | 4bf529274a7e9bc6ce7c26a0a11499dd8655569a /git-ls-remote.sh | |
parent | 710b7098e28513355cbdbedbb8d9c35ce5b4a488 (diff) | |
download | git-1abacf3b5b53f6cde7148862234d451cd88d0de3.tar.gz |
ls-remote: define die() now we do not use git-sh-setup
Another interesting "property" is that from inside a git managed
tree, "git-ls-remote ." names the current repository no matter
how deep a subdirectory you are in.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-ls-remote.sh')
-rwxr-xr-x | git-ls-remote.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/git-ls-remote.sh b/git-ls-remote.sh index dc6a775a9b..f69926862f 100755 --- a/git-ls-remote.sh +++ b/git-ls-remote.sh @@ -6,6 +6,11 @@ usage () { exit 1; } +die () { + echo >&2 "$*" + exit 1 +} + while case "$#" in 0) break;; esac do case "$1" in |