summaryrefslogtreecommitdiff
path: root/t/t3200-branch.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2018-06-22 09:23:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-06-22 20:19:33 (GMT)
commit6b155951510235e7eea77279c7eeea6ac3a8e700 (patch)
tree89f39288dd75a00e4238623926fd7adcc37e7755 /t/t3200-branch.sh
parent53f9a3e157dbbc901a02ac2c73346d375e24978c (diff)
downloadgit-6b155951510235e7eea77279c7eeea6ac3a8e700.zip
git-6b155951510235e7eea77279c7eeea6ac3a8e700.tar.gz
git-6b155951510235e7eea77279c7eeea6ac3a8e700.tar.bz2
t3200: unset core.logallrefupdates when testing reflog creation
This test checks that the "-l" option creates a reflog. But in fact we'd create one even without it, since the default in a non-bare repository is to do so. Let's unset the config so we can be sure our "-l" option is kicking in. Note that we can't do this with test_config, since that would leave the variable unset after our test finishes, confusing downstream tests (the helper is not not smart enough to restore the previous value, and just always runs test_unconfig). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3200-branch.sh')
-rwxr-xr-xt/t3200-branch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh
index 0846798..ec56176 100755
--- a/t/t3200-branch.sh
+++ b/t/t3200-branch.sh
@@ -51,7 +51,7 @@ $ZERO_OID $HEAD $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> 1117150200 +0000 bran
EOF
test_expect_success 'git branch -l d/e/f should create a branch and a log' '
GIT_COMMITTER_DATE="2005-05-26 23:30" \
- git branch -l d/e/f &&
+ git -c core.logallrefupdates=false branch -l d/e/f &&
test_path_is_file .git/refs/heads/d/e/f &&
test_path_is_file .git/logs/refs/heads/d/e/f &&
test_cmp expect .git/logs/refs/heads/d/e/f