Do not require ls-remote to be run inside a git repository.
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>
Alex Riesen committed
Oct 6, 2005 at 14:10 UTC
12aac5de3dd73a1f9d03f81c5b0087e71794cee7
2 files changed
+2
-2
git-ls-remote.sh
+1
-1
@@ -1,6 +1,6 @@
1
#!/bin/sh
2
#
3
-. git-sh-setup || die "Not a git archive"
3
+. git-sh-setup
4
5
usage () {
6
echo >&2 "usage: $0 [--heads] [--tags] <repository> <refs>..."
git-parse-remote.sh
+1
-1
@@ -1,6 +1,6 @@
1
#!/bin/sh
2
3
-. git-sh-setup || die "Not a git archive"
3
+. git-sh-setup
4
5
get_data_source () {
6
case "$1" in