summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2005-11-27 23:15:02 -0800
committerLibravatar Junio C Hamano <junkio@cox.net>2005-11-28 23:13:03 -0800
commit1abacf3b5b53f6cde7148862234d451cd88d0de3 (patch)
tree4bf529274a7e9bc6ce7c26a0a11499dd8655569a
parentcount-objects: make it operable from a subdirectory. (diff)
downloadtgif-1abacf3b5b53f6cde7148862234d451cd88d0de3.tar.xz
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 dc6a775a9b..f69926862f 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