Make git a little quieter
On my system whenever I run the tests without specifying an initial branch name, I get a lot of messages about setting the default branch name globally. This is just noise for these tests, so this specifies a branch name manually to make it go away. The name ‘gac-test’ was chosen to make it clear that we're dealing with a repository created specifically for ‘git-auto-commit-mode’ in case somehow a repository gets left behind.
This commit is contained in:
parent
97d9392d51
commit
50cb58b11d
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@
|
||||||
(setq temp-dir (make-temp-file "gac-" t)
|
(setq temp-dir (make-temp-file "gac-" t)
|
||||||
current-directory default-directory
|
current-directory default-directory
|
||||||
default-directory temp-dir)
|
default-directory temp-dir)
|
||||||
(shell-command "git init")
|
(shell-command "git init --initial-branch=gac-test")
|
||||||
(shell-command "git config user.email user@example.com")
|
(shell-command "git config user.email user@example.com")
|
||||||
(shell-command "git config user.name \"User Example\""))
|
(shell-command "git config user.name \"User Example\""))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue