diff options
| author | David Bremner <david@tethera.net> | 2022-04-03 16:17:16 -0600 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2022-06-17 08:40:19 -0300 |
| commit | d4d5737165c6833877d184a0bb438bfea69e2352 (patch) | |
| tree | 60084c17fc94059874225306db29f052497a3419 /notmuch-git.py | |
| parent | b0105841638e3681e51577128b0a990ae7f815dc (diff) | |
CLI/git: suppress warnings about initial branch name
The canonical nmbug repository still uses "master" as the main branch
name, so defer any potential switch away from that name.
Diffstat (limited to 'notmuch-git.py')
| -rw-r--r-- | notmuch-git.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/notmuch-git.py b/notmuch-git.py index f3ad6927..543ef4f1 100644 --- a/notmuch-git.py +++ b/notmuch-git.py @@ -351,7 +351,8 @@ def init(remote=None): This wraps 'git init' with a few extra steps to support subsequent status and commit commands. """ - _spawn(args=['git', '--git-dir', NOTMUCH_GIT_DIR, 'init', '--bare'], wait=True) + _spawn(args=['git', '--git-dir', NOTMUCH_GIT_DIR, 'init', + '--initial-branch=master', '--quiet', '--bare'], wait=True) _git(args=['config', 'core.logallrefupdates', 'true'], wait=True) # create an empty blob (e69de29bb2d1d6434b8b29ae775ad8c2e48c5391) _git(args=['hash-object', '-w', '--stdin'], input='', wait=True) |
