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/t5527-fetch-odd-refs.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/t5527-fetch-odd-refs.sh')
-rwxr-xr-x | third_party/git/t/t5527-fetch-odd-refs.sh | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/third_party/git/t/t5527-fetch-odd-refs.sh b/third_party/git/t/t5527-fetch-odd-refs.sh deleted file mode 100755 index 3b0cb9842293..000000000000 --- a/third_party/git/t/t5527-fetch-odd-refs.sh +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/sh - -test_description='test fetching of oddly-named refs' -. ./test-lib.sh - -# afterwards we will have: -# HEAD - two -# refs/for/refs/heads/master - one -# refs/heads/master - three -test_expect_success 'setup repo with odd suffix ref' ' - echo content >file && - git add . && - git commit -m one && - git update-ref refs/for/refs/heads/master HEAD && - echo content >>file && - git commit -a -m two && - echo content >>file && - git commit -a -m three && - git checkout HEAD^ -' - -test_expect_success 'suffix ref is ignored during fetch' ' - git clone --bare file://"$PWD" suffix && - echo three >expect && - git --git-dir=suffix log -1 --format=%s refs/heads/master >actual && - test_cmp expect actual -' - -test_expect_success 'try to create repo with absurdly long refname' ' - ref240=$ZERO_OID/$ZERO_OID/$ZERO_OID/$ZERO_OID/$ZERO_OID/$ZERO_OID && - ref1440=$ref240/$ref240/$ref240/$ref240/$ref240/$ref240 && - git init long && - ( - cd long && - test_commit long && - test_commit master - ) && - if git -C long update-ref refs/heads/$ref1440 long; then - test_set_prereq LONG_REF - else - echo >&2 "long refs not supported" - fi -' - -test_expect_success LONG_REF 'fetch handles extremely long refname' ' - git fetch long refs/heads/*:refs/remotes/long/* && - cat >expect <<-\EOF && - long - master - EOF - git for-each-ref --format="%(subject)" refs/remotes/long >actual && - test_cmp expect actual -' - -test_expect_success LONG_REF 'push handles extremely long refname' ' - git push long :refs/heads/$ref1440 && - git -C long for-each-ref --format="%(subject)" refs/heads >actual && - echo master >expect && - test_cmp expect actual -' - -test_done |