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/t1407-worktree-ref-store.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/t1407-worktree-ref-store.sh')
-rwxr-xr-x | third_party/git/t/t1407-worktree-ref-store.sh | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/third_party/git/t/t1407-worktree-ref-store.sh b/third_party/git/t/t1407-worktree-ref-store.sh deleted file mode 100755 index 9a848581180f..000000000000 --- a/third_party/git/t/t1407-worktree-ref-store.sh +++ /dev/null @@ -1,82 +0,0 @@ -#!/bin/sh - -test_description='test worktree ref store api' - -. ./test-lib.sh - -RWT="test-tool ref-store worktree:wt" -RMAIN="test-tool ref-store worktree:main" - -test_expect_success 'setup' ' - test_commit first && - git worktree add -b wt-master wt && - ( - cd wt && - test_commit second - ) -' - -test_expect_success 'resolve_ref(<shared-ref>)' ' - SHA1=`git rev-parse master` && - echo "$SHA1 refs/heads/master 0x0" >expected && - $RWT resolve-ref refs/heads/master 0 >actual && - test_cmp expected actual && - $RMAIN resolve-ref refs/heads/master 0 >actual && - test_cmp expected actual -' - -test_expect_success 'resolve_ref(<per-worktree-ref>)' ' - SHA1=`git -C wt rev-parse HEAD` && - echo "$SHA1 refs/heads/wt-master 0x1" >expected && - $RWT resolve-ref HEAD 0 >actual && - test_cmp expected actual && - - SHA1=`git rev-parse HEAD` && - echo "$SHA1 refs/heads/master 0x1" >expected && - $RMAIN resolve-ref HEAD 0 >actual && - test_cmp expected actual -' - -test_expect_success 'create_symref(FOO, refs/heads/master)' ' - $RWT create-symref FOO refs/heads/master nothing && - echo refs/heads/master >expected && - git -C wt symbolic-ref FOO >actual && - test_cmp expected actual && - - $RMAIN create-symref FOO refs/heads/wt-master nothing && - echo refs/heads/wt-master >expected && - git symbolic-ref FOO >actual && - test_cmp expected actual -' - -test_expect_success 'for_each_reflog()' ' - echo $ZERO_OID > .git/logs/PSEUDO-MAIN && - mkdir -p .git/logs/refs/bisect && - echo $ZERO_OID > .git/logs/refs/bisect/random && - - echo $ZERO_OID > .git/worktrees/wt/logs/PSEUDO-WT && - mkdir -p .git/worktrees/wt/logs/refs/bisect && - echo $ZERO_OID > .git/worktrees/wt/logs/refs/bisect/wt-random && - - $RWT for-each-reflog | cut -d" " -f 2- | sort >actual && - cat >expected <<-\EOF && - HEAD 0x1 - PSEUDO-WT 0x0 - refs/bisect/wt-random 0x0 - refs/heads/master 0x0 - refs/heads/wt-master 0x0 - EOF - test_cmp expected actual && - - $RMAIN for-each-reflog | cut -d" " -f 2- | sort >actual && - cat >expected <<-\EOF && - HEAD 0x1 - PSEUDO-MAIN 0x0 - refs/bisect/random 0x0 - refs/heads/master 0x0 - refs/heads/wt-master 0x0 - EOF - test_cmp expected actual -' - -test_done |