-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'jc/maint-unpack-objects-strict' into maint
* jc/maint-unpack-objects-strict: Fix "unpack-objects --strict" Conflicts: builtin-unpack-objects.c
- Loading branch information
Showing
2 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |