`git fetch origin ''` (the empty string) -- should this work?

From: Anthony Sottile <hidden>
Date: 2020-01-08 05:28:17

this seems to end up doing the same as `git fetch origin HEAD` but I
can't figure out why -- perhaps someone on this list can help me :)

$ git fetch origin ''
From github.com:python/cpython
 * branch                  HEAD       -> FETCH_HEAD

what I expected was `fatal: Couldn't find remote ref ''` or something
of the sort as would be seen when fetching some non-existent branch:

$ git fetch origin wat
fatal: Couldn't find remote ref wat

Anthony
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help