From 50cb58b11dd074e67bdfd1d4ab84409edb0ba807 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 7 Dec 2022 08:38:01 -0800 Subject: [PATCH] Make git a little quieter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- tests/git-auto-commit-mode-tests.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/git-auto-commit-mode-tests.el b/tests/git-auto-commit-mode-tests.el index 3dd8171..cb7af7e 100644 --- a/tests/git-auto-commit-mode-tests.el +++ b/tests/git-auto-commit-mode-tests.el @@ -38,7 +38,7 @@ (setq temp-dir (make-temp-file "gac-" t) current-directory default-directory 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.name \"User Example\""))