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>
Junio C Hamano committed
Nov 27, 2005 at 23:15 UTC
1abacf3b5b53f6cde7148862234d451cd88d0de3
1 file changed
+5
git-ls-remote.sh
+5
@@ -6,6 +6,11 @@ usage () {
6
exit 1;
7
}
8
9
+die () {
10
+ echo >&2 "$*"
11
+ exit 1
12
+}
13
+
14
while case "$#" in 0) break;; esac
15
do
16
case "$1" in