`git fetch origin ''` (the empty string) -- should this work?
- From
Anthony Sottile <asottile@umich.edu>
- Date
- Jan 8, 2020, 05:28 UTC
- Message-ID
- <CA+dzEBnT2Bgw7iwVWiHyCKs1V1oaSuEb8rR+dmiO7RbqpaVjgw@mail.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