{"thread":{"id":"6581","subject":"[PATCH] git-fetch: Allow fetching the remote HEAD","startedAt":"2007-01-30T09:36:24Z","lastAt":"2007-01-30T10:27:07Z","messageCount":2,"participants":["Santi Béjar","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"33025","messageId":"87fy9sluuf.fsf@gmail.com","threadId":"6581","inReplyTo":null,"subject":"[PATCH] git-fetch: Allow fetching the remote HEAD","fromName":"Santi Béjar","fromEmail":"sbejar@gmail.com","sentAt":"2007-01-30T09:36:24Z","receivedAt":"2007-01-30T09:36:24Z","isPatch":true,"sender":{"key":"santi@agolina.net","avatar":null},"body":"\n... with:\n\n$ git fetch ${remote} HEAD\n\nAlso\n\n$ git fetch ${remote} :${localref}\n\nworked, but\n\n$ git fetch ${remote} HEAD:{localref}\n\ndidn't. Now both are equivalent.\n\nSigned-off-by: Santi Béjar <sbejar@gmail.com>\n---\n git-parse-remote.sh |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/git-parse-remote.sh b/git-parse-remote.sh\nindex 9d26967..3e783b7 100755\n--- a/git-parse-remote.sh\n+++ b/git-parse-remote.sh\n@@ -183,7 +183,7 @@ canon_refs_list_for_fetch () {\n \t\t\tdone\n \t\tfi\n \t\tcase \"$remote\" in\n-\t\t'') remote=HEAD ;;\n+\t\t'' | HEAD ) remote=HEAD ;;\n \t\trefs/heads/* | refs/tags/* | refs/remotes/*) ;;\n \t\theads/* | tags/* | remotes/* ) remote=\"refs/$remote\" ;;\n \t\t*) remote=\"refs/heads/$remote\" ;;\n-- \n1.5.0.rc2.224.gb3a6\n"},{"id":"33030","messageId":"7vk5z424jo.fsf@assigned-by-dhcp.cox.net","threadId":"6581","inReplyTo":"87fy9sluuf.fsf@gmail.com","subject":"Re: [PATCH] git-fetch: Allow fetching the remote HEAD","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2007-01-30T10:27:07Z","receivedAt":"2007-01-30T10:27:07Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thanks.\n"}]}