Skip to content

Commit

Permalink
Do not require ls-remote to be run inside a git repository.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alex Riesen authored and Junio C Hamano committed Oct 6, 2005
1 parent a24e658 commit 12aac5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion git-ls-remote.sh
Original file line number Diff line number Diff line change
@@ -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>..."
Expand Down
2 changes: 1 addition & 1 deletion git-parse-remote.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

. git-sh-setup || die "Not a git archive"
. git-sh-setup

get_data_source () {
case "$1" in
Expand Down

0 comments on commit 12aac5d

Please sign in to comment.