mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
CLI/git: make existance of config branch optional on clone
This branch is actually only used by an associated utility (notmuch-report), and notmuch-git works fine without it.
This commit is contained in:
parent
b7b111b9b5
commit
a01378e48d
1 changed files with 7 additions and 1 deletions
|
@ -271,7 +271,13 @@ def clone(repository):
|
|||
wait=True)
|
||||
_git(args=['config', '--unset', 'core.worktree'], wait=True, expect=(0, 5))
|
||||
_git(args=['config', 'core.bare', 'true'], wait=True)
|
||||
_git(args=['branch', 'config', 'origin/config'], wait=True)
|
||||
(status, stdout, stderr) = _git(args=['show-ref', '--verify',
|
||||
'--quiet',
|
||||
'refs/remotes/origin/config'],
|
||||
expect=(0,1),
|
||||
wait=True)
|
||||
if status == 0:
|
||||
_git(args=['branch', 'config', 'origin/config'], wait=True)
|
||||
existing_tags = get_tags()
|
||||
if existing_tags:
|
||||
_LOG.warning(
|
||||
|
|
Loading…
Reference in a new issue