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/t1014-read-tree-confusing.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/t1014-read-tree-confusing.sh')
-rwxr-xr-x | third_party/git/t/t1014-read-tree-confusing.sh | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/third_party/git/t/t1014-read-tree-confusing.sh b/third_party/git/t/t1014-read-tree-confusing.sh deleted file mode 100755 index da3376b3bb27..000000000000 --- a/third_party/git/t/t1014-read-tree-confusing.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/sh - -test_description='check that read-tree rejects confusing paths' -. ./test-lib.sh - -test_expect_success 'create base tree' ' - echo content >file && - git add file && - git commit -m base && - blob=$(git rev-parse HEAD:file) && - tree=$(git rev-parse HEAD^{tree}) -' - -test_expect_success 'enable core.protectHFS for rejection tests' ' - git config core.protectHFS true -' - -test_expect_success 'enable core.protectNTFS for rejection tests' ' - git config core.protectNTFS true -' - -while read path pretty; do - : ${pretty:=$path} - case "$path" in - *SPACE) - path="${path%SPACE} " - ;; - esac - test_expect_success "reject $pretty at end of path" ' - printf "100644 blob %s\t%s" "$blob" "$path" >tree && - bogus=$(git mktree <tree) && - test_must_fail git read-tree $bogus - ' - - test_expect_success "reject $pretty as subtree" ' - printf "040000 tree %s\t%s" "$tree" "$path" >tree && - bogus=$(git mktree <tree) && - test_must_fail git read-tree $bogus - ' -done <<-EOF -. -.. -.git -.GIT -${u200c}.Git {u200c}.Git -.gI${u200c}T .gI{u200c}T -.GiT${u200c} .GiT{u200c} -git~1 -.git.SPACE .git.{space} -.\\\\.GIT\\\\foobar backslashes -.git\\\\foobar backslashes2 -.git...:alternate-stream -EOF - -test_expect_success 'utf-8 paths allowed with core.protectHFS off' ' - test_when_finished "git read-tree HEAD" && - test_config core.protectHFS false && - printf "100644 blob %s\t%s" "$blob" ".gi${u200c}t" >tree && - ok=$(git mktree <tree) && - git read-tree $ok -' - -test_done |