aboutsummaryrefslogtreecommitdiffstats
path: root/t/t1900-repo.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t1900-repo.sh')
-rwxr-xr-xt/t1900-repo.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/t1900-repo.sh b/t/t1900-repo.sh
index b0438d276e..6a9cbf3d47 100755
--- a/t/t1900-repo.sh
+++ b/t/t1900-repo.sh
@@ -44,6 +44,19 @@ test_repo_info 'bare repository = false is retrieved correctly' \
test_repo_info 'bare repository = true is retrieved correctly' \
'git init --bare' 'bare' 'layout.bare' 'true'
+test_repo_info 'shallow repository = false is retrieved correctly' \
+ 'git init' 'nonshallow' 'layout.shallow' 'false'
+
+test_expect_success 'setup remote' '
+ git init remote &&
+ echo x >remote/x &&
+ git -C remote add x &&
+ git -C remote commit -m x
+'
+
+test_repo_info 'shallow repository = true is retrieved correctly' \
+ 'git clone --depth 1 "file://$PWD/remote"' 'shallow' 'layout.shallow' 'true'
+
test_expect_success 'values returned in order requested' '
cat >expect <<-\EOF &&
layout.bare=false