]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-ls-remote.sh
sha1_to_hex: properly terminate the SHA1
[thirdparty/git.git] / git-ls-remote.sh
index f0f0b07f6f8c85219104303d65dabbba80fd3098..f69926862fba15c28933c6dd616065d331b9a89b 100755 (executable)
@@ -1,12 +1,16 @@
 #!/bin/sh
 #
-. git-sh-setup
 
 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