]> git.ipfire.org Git - thirdparty/git.git/commit
t3200: unset core.logallrefupdates when testing reflog creation
authorJeff King <peff@peff.net>
Fri, 22 Jun 2018 09:23:52 +0000 (05:23 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Jun 2018 20:19:33 +0000 (13:19 -0700)
commit6b155951510235e7eea77279c7eeea6ac3a8e700
tree89f39288dd75a00e4238623926fd7adcc37e7755
parent53f9a3e157dbbc901a02ac2c73346d375e24978c
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>
t/t3200-branch.sh