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 bfbd5a4d5a1bb35f9f52e3a495d1830b76078a7c..f0f0b07f6f8c85219104303d65dabbba80fd3098 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 4d8a572a9903179494c7cc4f8a72729a47f1c12b..5e75e15a7e57ce0783ec4a9731e0c65563fd1198 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