2009-08-13 23:41:14 +04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
test_description='unpack-objects'
|
|
|
|
|
|
|
|
. ./test-lib.sh
|
|
|
|
|
|
|
|
test_expect_success setup '
|
|
|
|
mkdir pub.git &&
|
2010-10-31 04:46:54 +03:00
|
|
|
GIT_DIR=pub.git git init --bare &&
|
2009-08-13 23:41:14 +04:00
|
|
|
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
|