aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-06-01 22:54:16 -0700
committerJunio C Hamano <gitster@pobox.com>2008-06-01 22:54:16 -0700
commit68100531547f9abd00362e31282155efdc040a4c (patch)
tree1d10153dcea0a279386adaf5667bbc0d4a61a34f /t
parent32d8050a86f8de0253430b12711354e66a317f29 (diff)
parent74d3b23fe3771c769ccd5c97f6a46682b4061577 (diff)
downloadgit-68100531547f9abd00362e31282155efdc040a4c.tar.gz
git-68100531547f9abd00362e31282155efdc040a4c.tar.xz
Merge branch 'lr/init-bare'
* lr/init-bare: git-init: accept --bare option
Diffstat (limited to 't')
-rwxr-xr-xt/t0001-init.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t0001-init.sh b/t/t0001-init.sh
index b0289e397..d31887f9b 100755
--- a/t/t0001-init.sh
+++ b/t/t0001-init.sh
@@ -79,6 +79,17 @@ test_expect_success 'GIT_DIR bare' '
check_config git-dir-bare.git true unset
'
+test_expect_success 'init --bare' '
+
+ (
+ unset GIT_DIR GIT_WORK_TREE GIT_CONFIG
+ mkdir git-init-bare.git &&
+ cd git-init-bare.git &&
+ git init --bare
+ ) &&
+ check_config git-init-bare.git true unset
+'
+
test_expect_success 'GIT_DIR non-bare' '
(