Do not require ls-remote to be run inside a git repository.
authorAlex Riesen <raa.lkml@gmail.com>
Thu, 6 Oct 2005 21:10:39 +0000 (14:10 -0700)
committerJunio C Hamano <junkio@cox.net>
Thu, 6 Oct 2005 21:10:39 +0000 (14:10 -0700)
The scripts work perfectly without a repository.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-ls-remote.sh
git-parse-remote.sh

index bfbd5a4..f0f0b07 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-. git-sh-setup || die "Not a git archive"
+. git-sh-setup
 
 usage () {
     echo >&2 "usage: $0 [--heads] [--tags] <repository> <refs>..."
index 4d8a572..5e75e15 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-. git-sh-setup || die "Not a git archive"
+. git-sh-setup
 
 get_data_source () {
        case "$1" in