threads / discuss / 52593

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

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

## tl;dr

One message between Jan 8, 2020 and Jan 8, 2020.

replies: 0people: 1as markdown or json

Anthony Sottile· Jan 8, 2020, 05:28 UTC · lore

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

← back to recent threads