Skip to content
Snippets Groups Projects
Commit 12aac5de authored by Alex Riesen's avatar Alex Riesen Committed by Junio C Hamano
Browse files

Do not require ls-remote to be run inside a git repository.


The scripts work perfectly without a repository.

Signed-off-by: default avatarAlex Riesen <raa.lkml@gmail.com>
Signed-off-by: default avatarJunio C Hamano <junkio@cox.net>
parent a24e6586
No related branches found
No related tags found
No related merge requests found
#!/bin/sh #!/bin/sh
# #
. git-sh-setup || die "Not a git archive" . git-sh-setup
usage () { usage () {
echo >&2 "usage: $0 [--heads] [--tags] <repository> <refs>..." echo >&2 "usage: $0 [--heads] [--tags] <repository> <refs>..."
......
#!/bin/sh #!/bin/sh
. git-sh-setup || die "Not a git archive" . git-sh-setup
get_data_source () { get_data_source () {
case "$1" in case "$1" in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment