diff options
author | Vincent Ambo <mail@tazj.in> | 2021-09-21T10·03+0300 |
---|---|---|
committer | Vincent Ambo <mail@tazj.in> | 2021-09-21T11·29+0300 |
commit | 43b1791ec601732ac31195df96781a848360a9ac (patch) | |
tree | daae8d638343295d2f1f7da955e556ef4c958864 /third_party/git/t/t9303-fast-import-compression.sh | |
parent | 2d8e7dc9d9c38127ec4ebd13aee8e8f586a43318 (diff) |
chore(3p/git): Unvendor git and track patches instead r/2903
This was vendored a long time ago under the expectation that keeping it in sync with cgit would be easier this way, but it has proven not to be a big issue. On the other hand, a vendored copy of git is an annoying maintenance burden. It is much easier to rebase the single (dottime) patch that we have. This removes the vendored copy of git and instead passes the git source code to cgit via `pkgs.srcOnly`, which includes the applied patch so that cgit can continue rendering dottime. Change-Id: If31f62dea7ce688fd1b9050204e9378019775f2b
Diffstat (limited to 'third_party/git/t/t9303-fast-import-compression.sh')
-rwxr-xr-x | third_party/git/t/t9303-fast-import-compression.sh | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/third_party/git/t/t9303-fast-import-compression.sh b/third_party/git/t/t9303-fast-import-compression.sh deleted file mode 100755 index 5045f02a5331..000000000000 --- a/third_party/git/t/t9303-fast-import-compression.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/sh - -test_description='compression setting of fast-import utility' -. ./test-lib.sh - -# This should be moved to test-lib.sh together with the -# copy in t0021 after both topics have graduated to 'master'. -file_size () { - test-tool path-utils file-size "$1" -} - -import_large () { - ( - echo blob - echo "data <<EOD" - printf "%2000000s\n" "$*" - echo EOD - ) | git "$@" fast-import -} - -while read expect config -do - test_expect_success "fast-import (packed) with $config" ' - test_when_finished "rm -f .git/objects/pack/pack-*.*" && - test_when_finished "rm -rf .git/objects/??" && - import_large -c fastimport.unpacklimit=0 $config && - sz=$(file_size .git/objects/pack/pack-*.pack) && - case "$expect" in - small) test "$sz" -le 100000 ;; - large) test "$sz" -ge 100000 ;; - esac - ' -done <<\EOF -large -c core.compression=0 -small -c core.compression=9 -large -c core.compression=0 -c pack.compression=0 -large -c core.compression=9 -c pack.compression=0 -small -c core.compression=0 -c pack.compression=9 -small -c core.compression=9 -c pack.compression=9 -large -c pack.compression=0 -small -c pack.compression=9 -EOF - -while read expect config -do - test_expect_success "fast-import (loose) with $config" ' - test_when_finished "rm -f .git/objects/pack/pack-*.*" && - test_when_finished "rm -rf .git/objects/??" && - import_large -c fastimport.unpacklimit=9 $config && - sz=$(file_size .git/objects/??/????*) && - case "$expect" in - small) test "$sz" -le 100000 ;; - large) test "$sz" -ge 100000 ;; - esac - ' -done <<\EOF -large -c core.compression=0 -small -c core.compression=9 -large -c core.compression=0 -c core.loosecompression=0 -large -c core.compression=9 -c core.loosecompression=0 -small -c core.compression=0 -c core.loosecompression=9 -small -c core.compression=9 -c core.loosecompression=9 -large -c core.loosecompression=0 -small -c core.loosecompression=9 -EOF - -test_done |