summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-28 07:15:02 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-11-29 07:13:03 (GMT)
commit1abacf3b5b53f6cde7148862234d451cd88d0de3 (patch)
tree4bf529274a7e9bc6ce7c26a0a11499dd8655569a
parent710b7098e28513355cbdbedbb8d9c35ce5b4a488 (diff)
downloadgit-1abacf3b5b53f6cde7148862234d451cd88d0de3.zip
git-1abacf3b5b53f6cde7148862234d451cd88d0de3.tar.gz
git-1abacf3b5b53f6cde7148862234d451cd88d0de3.tar.bz2
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-xgit-ls-remote.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/git-ls-remote.sh b/git-ls-remote.sh
index dc6a775..f699268 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