@@ -2784,7 +2784,10 @@ def run_check():
27842784 expected = '\n ' .join ([
27852785 r' running command "git clone --depth 1 --branch tag_for_tests %(git_repo)s"' ,
27862786 r" \(in .*/tmp.*\)" ,
2787- r' running command "tar cfvz .*/target/test.tar.gz --exclude .git testrepository"' ,
2787+ r' running command "find testrepository -print0 -path \'*/.git\' -prune | LC_ALL=C sort --zero-terminated'
2788+ rf" | GZIP=--no-name tar --create --file { self .test_prefix } /target/test.tar.gz --no-recursion"
2789+ r' --gzip --mtime="1970-01-01 00:00Z" --owner=0 --group=0 --numeric-owner --format=gnu'
2790+ r' --null --no-recursion --files-from -"' ,
27882791 r" \(in .*/tmp.*\)" ,
27892792 ]) % git_repo
27902793 run_check ()
@@ -2793,7 +2796,10 @@ def run_check():
27932796 expected = '\n ' .join ([
27942797 r' running command "git clone --depth 1 --branch tag_for_tests %(git_repo)s test123"' ,
27952798 r" \(in .*/tmp.*\)" ,
2796- r' running command "tar cfvz .*/target/test.tar.gz --exclude .git test123"' ,
2799+ r' running command "find test123 -print0 -path \'*/.git\' -prune | LC_ALL=C sort --zero-terminated'
2800+ rf" | GZIP=--no-name tar --create --file { self .test_prefix } /target/test.tar.gz --no-recursion"
2801+ r' --gzip --mtime="1970-01-01 00:00Z" --owner=0 --group=0 --numeric-owner --format=gnu'
2802+ r' --null --no-recursion --files-from -"' ,
27972803 r" \(in .*/tmp.*\)" ,
27982804 ]) % git_repo
27992805 run_check ()
@@ -2803,7 +2809,10 @@ def run_check():
28032809 expected = '\n ' .join ([
28042810 r' running command "git clone --depth 1 --branch tag_for_tests --recursive %(git_repo)s"' ,
28052811 r" \(in .*/tmp.*\)" ,
2806- r' running command "tar cfvz .*/target/test.tar.gz --exclude .git testrepository"' ,
2812+ r' running command "find testrepository -print0 -path \'*/.git\' -prune | LC_ALL=C sort --zero-terminated'
2813+ rf" | GZIP=--no-name tar --create --file { self .test_prefix } /target/test.tar.gz --no-recursion"
2814+ r' --gzip --mtime="1970-01-01 00:00Z" --owner=0 --group=0 --numeric-owner --format=gnu'
2815+ r' --null --no-recursion --files-from -"' ,
28072816 r" \(in .*/tmp.*\)" ,
28082817 ]) % git_repo
28092818 run_check ()
@@ -2812,7 +2821,10 @@ def run_check():
28122821 expected = '\n ' .join ([
28132822 r' running command "git clone --branch tag_for_tests --recursive %(git_repo)s"' ,
28142823 r" \(in .*/tmp.*\)" ,
2815- r' running command "tar cfvz .*/target/test.tar.gz testrepository"' ,
2824+ r' running command "find testrepository -print0 | LC_ALL=C sort --zero-terminated | GZIP=--no-name tar'
2825+ rf" --create --file { self .test_prefix } /target/test.tar.gz --no-recursion --gzip"
2826+ r' --mtime="1970-01-01 00:00Z" --owner=0 --group=0 --numeric-owner --format=gnu --null --no-recursion'
2827+ r' --files-from -"' ,
28162828 r" \(in .*/tmp.*\)" ,
28172829 ]) % git_repo
28182830 run_check ()
@@ -2825,7 +2837,10 @@ def run_check():
28252837 r" \(in .*/tmp.*\)" ,
28262838 r' running command "git checkout 8456f86 && git submodule update --init --recursive"' ,
28272839 r" \(in testrepository\)" ,
2828- r' running command "tar cfvz .*/target/test.tar.gz --exclude .git testrepository"' ,
2840+ r' running command "find testrepository -print0 -path \'*/.git\' -prune | LC_ALL=C sort --zero-terminated'
2841+ rf" | GZIP=--no-name tar --create --file { self .test_prefix } /target/test.tar.gz --no-recursion"
2842+ r' --gzip --mtime="1970-01-01 00:00Z" --owner=0 --group=0 --numeric-owner --format=gnu'
2843+ r' --null --no-recursion --files-from -"' ,
28292844 r" \(in .*/tmp.*\)" ,
28302845 ]) % git_repo
28312846 run_check ()
@@ -2836,7 +2851,10 @@ def run_check():
28362851 r" \(in .*/tmp.*\)" ,
28372852 r' running command "git checkout 8456f86"' ,
28382853 r" \(in testrepository\)" ,
2839- r' running command "tar cfvz .*/target/test.tar.gz --exclude .git testrepository"' ,
2854+ r' running command "find testrepository -print0 -path \'*/.git\' -prune | LC_ALL=C sort --zero-terminated'
2855+ rf" | GZIP=--no-name tar --create --file { self .test_prefix } /target/test.tar.gz --no-recursion"
2856+ r' --gzip --mtime="1970-01-01 00:00Z" --owner=0 --group=0 --numeric-owner --format=gnu'
2857+ r' --null --no-recursion --files-from -"' ,
28402858 r" \(in .*/tmp.*\)" ,
28412859 ]) % git_repo
28422860 run_check ()
0 commit comments