Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
parse-remote: do not barf on a remote shorthand without any refs to fetch.
author
Junio C Hamano
<junkio@cox.net>
Fri, 26 Jan 2007 05:50:49 +0000
(21:50 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Fri, 26 Jan 2007 06:03:16 +0000
(22:03 -0800)
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-parse-remote.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
e1b1611
)
diff --git
a/git-parse-remote.sh
b/git-parse-remote.sh
index 1122c8389ddb3ba860eae62483c8c55603321a20..7e87f2e06e6e491d7c518d332bfa036cca081ea2 100755
(executable)
--- a/
git-parse-remote.sh
+++ b/
git-parse-remote.sh
@@
-81,7
+81,14
@@
get_remote_default_refs_for_push () {
# is to help prevent randomly "globbed" ref from being chosen as
# a merge candidate
expand_refs_wildcard () {
# is to help prevent randomly "globbed" ref from being chosen as
# a merge candidate
expand_refs_wildcard () {
+ remote="$1"
+ shift
first_one=yes
first_one=yes
+ if test "$#" = 0
+ then
+ echo empty
+ echo >&2 "Nothing specified for fetching with remote.$remote.fetch"
+ fi
for ref
do
lref=${ref#'+'}
for ref
do
lref=${ref#'+'}
@@
-132,7
+139,7
@@
canon_refs_list_for_fetch () {
if test "$1" = "-d"
then
shift ; remote="$1" ; shift
if test "$1" = "-d"
then
shift ; remote="$1" ; shift
- set $(expand_refs_wildcard "$@")
+ set $(expand_refs_wildcard "$
remote" "$
@")
is_explicit="$1"
shift
if test "$remote" = "$(get_default_remote)"
is_explicit="$1"
shift
if test "$remote" = "$(get_default_remote)"