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>
This commit is contained in:
Alex Riesen 2005-10-06 14:10:39 -07:00 коммит произвёл Junio C Hamano
Родитель a24e658649
Коммит 12aac5de3d
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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>..."

Просмотреть файл

@ -1,6 +1,6 @@
#!/bin/sh
. git-sh-setup || die "Not a git archive"
. git-sh-setup
get_data_source () {
case "$1" in