diff options
| author | SZEDER Gábor <szeder.dev@gmail.com> | 2017-02-03 03:48:19 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2017-02-03 22:18:40 -0800 |
| commit | 62a1b732160c363a84be310f801b5dec59196b9c (patch) | |
| tree | 4fca423596204c5cff6a46b36a1b528056497bc3 /contrib/persistent-https | |
| parent | completion: list refs from remote when remote's name matches a directory (diff) | |
| download | git-62a1b732160c363a84be310f801b5dec59196b9c.tar.gz git-62a1b732160c363a84be310f801b5dec59196b9c.zip | |
completion: don't list 'HEAD' when trying refs completion outside of a repo
When refs completion is attempted while not in a git repository, the
completion script offers 'HEAD' erroneously.
Check early in __git_refs() that there is either a repository or a
remote to work on, and return early if neither is given.
Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions
