Fix renaming branch without config file
[gitweb.git] / t / t3200-branch.sh
index 9558bdb6318cc2956c43153084e1f1cc8386973f..ce2c5f41fd55e15bec4e42d9dbba0d310a6e6c87 100755 (executable)
@@ -83,6 +83,15 @@ test_expect_failure \
          git-branch r &&
          git-branch -m q r/q'
 
+mv .git/config .git/config-saved
+
+test_expect_success 'git branch -m q Q without config should succeed' '
+       git-branch -m q Q &&
+       git-branch -m Q q
+'
+
+mv .git/config-saved .git/config
+
 git-config branch.s/s.dummy Hello
 
 test_expect_success \