* [PATCH] git-fetch: Allow fetching the remote HEAD
@ 2007-01-30 9:36 Santi Béjar
2007-01-30 10:27 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Santi Béjar @ 2007-01-30 9:36 UTC (permalink / raw)
To: Git Mailing List
... with:
$ git fetch ${remote} HEAD
Also
$ git fetch ${remote} :${localref}
worked, but
$ git fetch ${remote} HEAD:{localref}
didn't. Now both are equivalent.
Signed-off-by: Santi Béjar <sbejar@gmail.com>
---
git-parse-remote.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-parse-remote.sh b/git-parse-remote.sh
index 9d26967..3e783b7 100755
--- a/git-parse-remote.sh
+++ b/git-parse-remote.sh
@@ -183,7 +183,7 @@ canon_refs_list_for_fetch () {
done
fi
case "$remote" in
- '') remote=HEAD ;;
+ '' | HEAD ) remote=HEAD ;;
refs/heads/* | refs/tags/* | refs/remotes/*) ;;
heads/* | tags/* | remotes/* ) remote="refs/$remote" ;;
*) remote="refs/heads/$remote" ;;
--
1.5.0.rc2.224.gb3a6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] git-fetch: Allow fetching the remote HEAD
2007-01-30 9:36 [PATCH] git-fetch: Allow fetching the remote HEAD Santi Béjar
@ 2007-01-30 10:27 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2007-01-30 10:27 UTC (permalink / raw)
To: Santi Béjar; +Cc: git
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-01-30 10:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-30 9:36 [PATCH] git-fetch: Allow fetching the remote HEAD Santi Béjar
2007-01-30 10:27 ` Junio C Hamano
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.