From: Alex Riesen Date: Thu, 6 Oct 2005 21:10:39 +0000 (-0700) Subject: Do not require ls-remote to be run inside a git repository. X-Git-Tag: v0.99.9~191 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=12aac5de3dd73a1f9d03f81c5b0087e71794cee7;p=git.git Do not require ls-remote to be run inside a git repository. The scripts work perfectly without a repository. Signed-off-by: Alex Riesen Signed-off-by: Junio C Hamano --- diff --git a/git-ls-remote.sh b/git-ls-remote.sh index bfbd5a4d5..f0f0b07f6 100755 --- a/git-ls-remote.sh +++ b/git-ls-remote.sh @@ -1,6 +1,6 @@ #!/bin/sh # -. git-sh-setup || die "Not a git archive" +. git-sh-setup usage () { echo >&2 "usage: $0 [--heads] [--tags] ..." diff --git a/git-parse-remote.sh b/git-parse-remote.sh index 4d8a572a9..5e75e15a7 100755 --- a/git-parse-remote.sh +++ b/git-parse-remote.sh @@ -1,6 +1,6 @@ #!/bin/sh -. git-sh-setup || die "Not a git archive" +. git-sh-setup get_data_source () { case "$1" in