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/t1090-sparse-checkout-scope.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/t1090-sparse-checkout-scope.sh')
-rwxr-xr-x | third_party/git/t/t1090-sparse-checkout-scope.sh | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/third_party/git/t/t1090-sparse-checkout-scope.sh b/third_party/git/t/t1090-sparse-checkout-scope.sh deleted file mode 100755 index f35a73dd2065..000000000000 --- a/third_party/git/t/t1090-sparse-checkout-scope.sh +++ /dev/null @@ -1,84 +0,0 @@ -#!/bin/sh - -test_description='sparse checkout scope tests' - -. ./test-lib.sh - -test_expect_success 'setup' ' - echo "initial" >a && - echo "initial" >b && - echo "initial" >c && - git add a b c && - git commit -m "initial commit" -' - -test_expect_success 'create feature branch' ' - git checkout -b feature && - echo "modified" >b && - echo "modified" >c && - git add b c && - git commit -m "modification" -' - -test_expect_success 'perform sparse checkout of master' ' - git config --local --bool core.sparsecheckout true && - echo "!/*" >.git/info/sparse-checkout && - echo "/a" >>.git/info/sparse-checkout && - echo "/c" >>.git/info/sparse-checkout && - git checkout master && - test_path_is_file a && - test_path_is_missing b && - test_path_is_file c -' - -test_expect_success 'merge feature branch into sparse checkout of master' ' - git merge feature && - test_path_is_file a && - test_path_is_missing b && - test_path_is_file c && - test "$(cat c)" = "modified" -' - -test_expect_success 'return to full checkout of master' ' - git checkout feature && - echo "/*" >.git/info/sparse-checkout && - git checkout master && - test_path_is_file a && - test_path_is_file b && - test_path_is_file c && - test "$(cat b)" = "modified" -' - -test_expect_success 'in partial clone, sparse checkout only fetches needed blobs' ' - test_create_repo server && - git clone "file://$(pwd)/server" client && - - test_config -C server uploadpack.allowfilter 1 && - test_config -C server uploadpack.allowanysha1inwant 1 && - echo a >server/a && - echo bb >server/b && - mkdir server/c && - echo ccc >server/c/c && - git -C server add a b c/c && - git -C server commit -m message && - - test_config -C client core.sparsecheckout 1 && - echo "!/*" >client/.git/info/sparse-checkout && - echo "/a" >>client/.git/info/sparse-checkout && - git -C client fetch --filter=blob:none origin && - git -C client checkout FETCH_HEAD && - - git -C client rev-list HEAD \ - --quiet --objects --missing=print >unsorted_actual && - ( - printf "?" && - git hash-object server/b && - printf "?" && - git hash-object server/c/c - ) >unsorted_expect && - sort unsorted_actual >actual && - sort unsorted_expect >expect && - test_cmp expect actual -' - -test_done |