summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-09-09 12:26:35 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-09-09 12:26:35 -0700
commitb4a1eec33249344b5c7b978d397259088cafd219 (patch)
tree128d1be124f4b323371a4efffb4767cf10a84b36 /t
parentMerge branch 'py/git-gui-do-quit' (diff)
parentconfig: stop checking whether the_repository is NULL (diff)
downloadtgif-b4a1eec33249344b5c7b978d397259088cafd219.tar.xz
Merge branch 'jk/repo-init-cleanup'
Further clean-up of the initialization code. * jk/repo-init-cleanup: config: stop checking whether the_repository is NULL common-main: delay trace2 initialization t1309: use short branch name in includeIf.onbranch test
Diffstat (limited to 't')
-rwxr-xr-xt/t1309-early-config.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/t1309-early-config.sh b/t/t1309-early-config.sh
index 0c37e7180d..3a0de0ddaa 100755
--- a/t/t1309-early-config.sh
+++ b/t/t1309-early-config.sh
@@ -91,7 +91,12 @@ test_expect_failure 'ignore .git/ with invalid config' '
test_expect_success 'early config and onbranch' '
echo "[broken" >broken &&
- test_with_config "[includeif \"onbranch:refs/heads/master\"]path=../broken"
+ test_with_config "[includeif \"onbranch:master\"]path=../broken"
+'
+
+test_expect_success 'onbranch config outside of git repo' '
+ test_config_global includeIf.onbranch:master.path non-existent &&
+ nongit git help
'
test_done