git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
a24e658
)
Do not require ls-remote to be run inside a git repository.
author
Alex Riesen
<redacted>
Thu, 6 Oct 2005 21:10:39 +0000
(14:10 -0700)
committer
Junio C Hamano
<redacted>
Thu, 6 Oct 2005 21:10:39 +0000
(14:10 -0700)
The scripts work perfectly without a repository.
Signed-off-by: Alex Riesen <redacted>
Signed-off-by: Junio C Hamano <redacted>
git-ls-remote.sh
patch
|
blob
|
history
git-parse-remote.sh
patch
|
blob
|
history
diff --git
a/git-ls-remote.sh
b/git-ls-remote.sh
index bfbd5a4d5a1bb35f9f52e3a495d1830b76078a7c..f0f0b07f6f8c85219104303d65dabbba80fd3098 100755
(executable)
--- 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] <repository> <refs>..."
diff --git
a/git-parse-remote.sh
b/git-parse-remote.sh
index 4d8a572a9903179494c7cc4f8a72729a47f1c12b..5e75e15a7e57ce0783ec4a9731e0c65563fd1198 100755
(executable)
--- 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
git clone https://git.99rst.org/PROJECT