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

1 messages from 2020-01-08 to 2020-01-08. Participants: Anthony Sottile.
Thread: https://gitlist.dev/t/52593

## Anthony Sottile, 2020-01-08 05:28

Subject: `git fetch origin ''` (the empty string) -- should this work?
Message-ID: <CA+dzEBnT2Bgw7iwVWiHyCKs1V1oaSuEb8rR+dmiO7RbqpaVjgw@mail.gmail.com>
URL: https://gitlist.dev/e/CA%2BdzEBnT2Bgw7iwVWiHyCKs1V1oaSuEb8rR%2BdmiO7RbqpaVjgw%40mail.gmail.com

```
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

```
