Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
GIT 1.1.5
[gitweb.git]
/
git-ls-remote.sh
diff --git
a/git-ls-remote.sh
b/git-ls-remote.sh
index bfbd5a4d5a1bb35f9f52e3a495d1830b76078a7c..f69926862fba15c28933c6dd616065d331b9a89b 100755
(executable)
--- a/
git-ls-remote.sh
+++ b/
git-ls-remote.sh
@@
-1,12
+1,16
@@
#!/bin/sh
#
-. git-sh-setup || die "Not a git archive"
usage () {
echo >&2 "usage: $0 [--heads] [--tags] <repository> <refs>..."
exit 1;
}
+die () {
+ echo >&2 "$*"
+ exit 1
+}
+
while case "$#" in 0) break;; esac
do
case "$1" in