From 1abacf3b5b53f6cde7148862234d451cd88d0de3 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sun, 27 Nov 2005 23:15:02 -0800 Subject: [PATCH] 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 --- git-ls-remote.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/git-ls-remote.sh b/git-ls-remote.sh index dc6a775a9..f69926862 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 -- 2.26.2