mirror of
https://github.com/git/git.git
synced 2026-02-07 08:15:23 +00:00
@@ -35,7 +35,7 @@ test_expect_success 'setup' '
|
||||
git checkout -b upstream-branch &&
|
||||
test_commit upstream-one &&
|
||||
test_commit upstream-two &&
|
||||
git checkout -b @/at-test &&
|
||||
git checkout -b @//at-test &&
|
||||
git checkout -b @@/at-test &&
|
||||
git checkout -b @at-test &&
|
||||
git checkout -b old-branch &&
|
||||
@@ -64,7 +64,7 @@ check "@{-1}@{u}@{1}" commit master-one
|
||||
check "@" commit new-two
|
||||
check "@@{u}" ref refs/heads/upstream-branch
|
||||
check "@@/at-test" ref refs/heads/@@/at-test
|
||||
check "@/at-test" ref refs/heads/@/at-test
|
||||
check "@//at-test" ref refs/heads/@/at-test
|
||||
check "@at-test" ref refs/heads/@at-test
|
||||
nonsense "@{u}@{-1}"
|
||||
nonsense "@{0}@{0}"
|
||||
|
||||
@@ -63,7 +63,7 @@ test_set_prereq SHORTABSPATH
|
||||
test_expect_success SHORTABSPATH 'clean up path close to MAX_PATH' '
|
||||
p=/123456789abcdef/123456789abcdef/123456789abcdef/123456789abc/ef &&
|
||||
p=y$p$p$p$p &&
|
||||
subdir="x$(echo "$p" | tail -c $((253 - ${#abspath})))" &&
|
||||
subdir="x$(echo "$p" | tail -c $((253 - ${#abspath})) - )" &&
|
||||
# Now, $abspath/$subdir has exactly 254 characters, and is inside CWD
|
||||
p2="$abspath/$subdir" &&
|
||||
test 254 = ${#p2} &&
|
||||
|
||||
@@ -240,9 +240,11 @@ test_expect_success 'archive --list shows only enabled remote filters' '
|
||||
test_expect_success 'invoke tar filter by format' '
|
||||
git archive --format=tar.foo HEAD >config.tar.foo &&
|
||||
tr ab ba <config.tar.foo >config.tar &&
|
||||
d2u_force config.tar &&
|
||||
test_cmp_bin b.tar config.tar &&
|
||||
git archive --format=bar HEAD >config.bar &&
|
||||
tr ab ba <config.bar >config.tar &&
|
||||
d2u_force config.tar &&
|
||||
test_cmp_bin b.tar config.tar
|
||||
'
|
||||
|
||||
@@ -267,6 +269,7 @@ test_expect_success 'only enabled filters are available remotely' '
|
||||
test_must_fail git archive --remote=. --format=tar.foo HEAD \
|
||||
>remote.tar.foo &&
|
||||
git archive --remote=. --format=bar >remote.bar HEAD &&
|
||||
d2u_force config.bar &&
|
||||
test_cmp_bin remote.bar config.bar
|
||||
'
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ get_needs () {
|
||||
' "$1"
|
||||
}
|
||||
|
||||
test_expect_success 'fetch A (new commit : 1 connection)' '
|
||||
test_expect_failure 'fetch A (new commit : 1 connection)' ' # TODO known breakage
|
||||
rm -f $U &&
|
||||
(
|
||||
cd cloned &&
|
||||
@@ -82,7 +82,7 @@ want $T
|
||||
EOF
|
||||
'
|
||||
|
||||
test_expect_success 'fetch C, T (new branch, tag : 1 connection)' '
|
||||
test_expect_failure 'fetch C, T (new branch, tag : 1 connection)' ' # TODO known breakage
|
||||
rm -f $U &&
|
||||
(
|
||||
cd cloned &&
|
||||
@@ -118,7 +118,7 @@ want $S
|
||||
EOF
|
||||
'
|
||||
|
||||
test_expect_success 'fetch B, S (commit and tag : 1 connection)' '
|
||||
test_expect_failure 'fetch B, S (commit and tag : 1 connection)' ' # TODO known breakage
|
||||
rm -f $U &&
|
||||
(
|
||||
cd cloned &&
|
||||
|
||||
@@ -866,3 +866,11 @@ mingw_read_file_strip_cr_ () {
|
||||
eval "$1=\$$1\$line"
|
||||
done
|
||||
}
|
||||
|
||||
# Perform dos2unix line ending conversion for binary files
|
||||
d2u_force() {
|
||||
if test_have_prereq MINGW
|
||||
then
|
||||
dos2unix --force "$1"
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user