]> git.ipfire.org Git - thirdparty/git.git/commitdiff
ls-remote: define die() now we do not use git-sh-setup
authorJunio C Hamano <junkio@cox.net>
Mon, 28 Nov 2005 07:15:02 +0000 (23:15 -0800)
committerJunio C Hamano <junkio@cox.net>
Tue, 29 Nov 2005 07:13:03 +0000 (23:13 -0800)
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>
git-ls-remote.sh

index dc6a775a9be83cfd349773b07051cd256d5ea114..f69926862fba15c28933c6dd616065d331b9a89b 100755 (executable)
@@ -6,6 +6,11 @@ usage () {
     exit 1;
 }
 
+die () {
+    echo >&2 "$*"
+    exit 1
+}
+
 while case "$#" in 0) break;; esac
 do
   case "$1" in