forked from git/git
-
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.
* maint: sha1_file: link() returns -1 on failure, not errno Make git archive respect core.autocrlf when creating zip format archives Add new test to demonstrate git archive core.autocrlf inconsistency gitweb: avoid warnings for commits without body Clarified gitattributes documentation regarding custom hunk header. git-svn: fix handling of even funkier branch names git-svn: Always create a new RA when calling do_switch for svn:// git-svn: factor out svnserve test code for later use diff/diff-files: do not use --cc too aggressively
- Loading branch information
Showing
12 changed files
with
327 additions
and
39 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
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
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
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
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,46 @@ | ||
#!/bin/sh | ||
|
||
test_description='respect crlf in git archive' | ||
|
||
. ./test-lib.sh | ||
UNZIP=${UNZIP:-unzip} | ||
|
||
test_expect_success setup ' | ||
git config core.autocrlf true | ||
printf "CRLF line ending\r\nAnd another\r\n" > sample && | ||
git add sample && | ||
test_tick && | ||
git commit -m Initial | ||
' | ||
|
||
test_expect_success 'tar archive' ' | ||
git archive --format=tar HEAD | | ||
( mkdir untarred && cd untarred && "$TAR" -xf - ) | ||
test_cmp sample untarred/sample | ||
' | ||
|
||
"$UNZIP" -v >/dev/null 2>&1 | ||
if [ $? -eq 127 ]; then | ||
echo "Skipping ZIP test, because unzip was not found" | ||
test_done | ||
exit | ||
fi | ||
|
||
test_expect_success 'zip archive' ' | ||
git archive --format=zip HEAD >test.zip && | ||
( mkdir unzipped && cd unzipped && unzip ../test.zip ) && | ||
test_cmp sample unzipped/sample | ||
' | ||
|
||
test_done |
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,22 @@ | ||
#!/bin/sh | ||
# | ||
# Copyright (c) 2008 Alec Berryman | ||
|
||
test_description='git svn fetch repository with deleted and readded directory' | ||
|
||
. ./lib-git-svn.sh | ||
|
||
# Don't run this by default; it opens up a port. | ||
require_svnserve | ||
|
||
test_expect_success 'load repository' ' | ||
svnadmin load -q "$rawsvnrepo" < "$TEST_DIRECTORY"/t9126/follow-deleted-readded.dump | ||
' | ||
|
||
test_expect_success 'fetch repository' ' | ||
start_svnserve && | ||
git svn init svn://127.0.0.1:$SVNSERVE_PORT && | ||
git svn fetch | ||
' | ||
|
||
test_done |
Oops, something went wrong.