projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
710b709
)
ls-remote: define die() now we do not use git-sh-setup
author
Junio C Hamano
<junkio@cox.net>
Mon, 28 Nov 2005 07:15:02 +0000
(23:15 -0800)
committer
Junio 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
patch
|
blob
|
history
diff --git
a/git-ls-remote.sh
b/git-ls-remote.sh
index dc6a775a9be83cfd349773b07051cd256d5ea114..f69926862fba15c28933c6dd616065d331b9a89b 100755
(executable)
--- 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