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/t3060-ls-files-with-tree.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/t3060-ls-files-with-tree.sh')
-rwxr-xr-x | third_party/git/t/t3060-ls-files-with-tree.sh | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/third_party/git/t/t3060-ls-files-with-tree.sh b/third_party/git/t/t3060-ls-files-with-tree.sh deleted file mode 100755 index 52ed665fcd2d..000000000000 --- a/third_party/git/t/t3060-ls-files-with-tree.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/sh -# -# Copyright (c) 2007 Carl D. Worth -# - -test_description='git ls-files test (--with-tree). - -This test runs git ls-files --with-tree and in particular in -a scenario known to trigger a crash with some versions of git. -' -. ./test-lib.sh - -test_expect_success setup ' - - # The bug we are exercising requires a fair number of entries - # in a sub-directory so that add_index_entry will trigger a - # realloc. - - echo file >expected && - mkdir sub && - for n in 0 1 2 3 4 5 - do - for m in 0 1 2 3 4 5 6 7 8 9 - do - num=00$n$m && - >sub/file-$num && - echo file-$num >>expected || - return 1 - done - done && - git add . && - git commit -m "add a bunch of files" && - - # We remove them all so that we will have something to add - # back with --with-tree and so that we will definitely be - # under the realloc size to trigger the bug. - rm -rf sub && - git commit -a -m "remove them all" && - - # The bug also requires some entry before our directory so that - # prune_path will modify the_index.cache - - mkdir a_directory_that_sorts_before_sub && - >a_directory_that_sorts_before_sub/file && - mkdir sub && - >sub/file && - git add . -' - -test_expect_success 'git ls-files --with-tree should succeed from subdir' ' - # We have to run from a sub-directory to trigger prune_path - # Then we finally get to run our --with-tree test - ( - cd sub && - git ls-files --with-tree=HEAD~1 >../output - ) -' - -test_expect_success \ - 'git ls-files --with-tree should add entries from named tree.' \ - 'test_cmp expected output' - -test_done |