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 | |
parent | count-objects: make it operable from a subdirectory. (diff) | |
download | tgif-1abacf3b5b53f6cde7148862234d451cd88d0de3.tar.xz |
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>
-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 |