From: Junio C Hamano Date: Mon, 28 Nov 2005 07:15:02 +0000 (-0800) Subject: ls-remote: define die() now we do not use git-sh-setup X-Git-Tag: v0.99.9l^2~23^2~6 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1abacf3b5b53f6cde7148862234d451cd88d0de3;p=git.git 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 --- diff --git a/git-ls-remote.sh b/git-ls-remote.sh index dc6a775a..f6992686 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