aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-09-16 14:45:18 -0700
committerJunio C Hamano <gitster@pobox.com>2009-09-16 14:45:18 -0700
commitaf4f6405296dec699321ca59d48583ffa0323b0e (patch)
tree8858983d81b0eef76eb55d21a0d96b7b16846eca /t
parent6674d310d179400358d581f9725cbd4a2c32e3bf (diff)
parent9a217391e931763d168d177decfe5e962d306bac (diff)
downloadgit-af4f6405296dec699321ca59d48583ffa0323b0e.tar.gz
git-af4f6405296dec699321ca59d48583ffa0323b0e.tar.xz
Merge branch 'jc/maint-unpack-objects-strict' into maint
* jc/maint-unpack-objects-strict: Fix "unpack-objects --strict" Conflicts: builtin-unpack-objects.c
Diffstat (limited to 't')
-rw-r--r--t/t5531-deep-submodule-push.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/t/t5531-deep-submodule-push.sh b/t/t5531-deep-submodule-push.sh
new file mode 100644
index 000000000..65d8d474b
--- /dev/null
+++ b/t/t5531-deep-submodule-push.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+test_description='unpack-objects'
+
+. ./test-lib.sh
+
+test_expect_success setup '
+ mkdir pub.git &&
+ GIT_DIR=pub.git git init --bare
+ GIT_DIR=pub.git git config receive.fsckobjects true &&
+ mkdir work &&
+ (
+ cd work &&
+ git init &&
+ mkdir -p gar/bage &&
+ (
+ cd gar/bage &&
+ git init &&
+ >junk &&
+ git add junk &&
+ git commit -m "Initial junk"
+ ) &&
+ git add gar/bage &&
+ git commit -m "Initial superproject"
+ )
+'
+
+test_expect_success push '
+ (
+ cd work &&
+ git push ../pub.git master
+ )
+'
+
+test_done