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/t1504-ceiling-dirs.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/t1504-ceiling-dirs.sh')
-rwxr-xr-x | third_party/git/t/t1504-ceiling-dirs.sh | 181 |
1 files changed, 0 insertions, 181 deletions
diff --git a/third_party/git/t/t1504-ceiling-dirs.sh b/third_party/git/t/t1504-ceiling-dirs.sh deleted file mode 100755 index 3d51615e42d5..000000000000 --- a/third_party/git/t/t1504-ceiling-dirs.sh +++ /dev/null @@ -1,181 +0,0 @@ -#!/bin/sh - -test_description='test GIT_CEILING_DIRECTORIES' -. ./test-lib.sh - -test_prefix() { - test_expect_success "$1" \ - "test '$2' = \"\$(git rev-parse --show-prefix)\"" -} - -test_fail() { - test_expect_success "$1: prefix" ' - test_expect_code 128 git rev-parse --show-prefix - ' -} - -TRASH_ROOT="$PWD" -ROOT_PARENT=$(dirname "$TRASH_ROOT") - - -unset GIT_CEILING_DIRECTORIES -test_prefix no_ceil "" - -export GIT_CEILING_DIRECTORIES - -GIT_CEILING_DIRECTORIES="" -test_prefix ceil_empty "" - -GIT_CEILING_DIRECTORIES="$ROOT_PARENT" -test_prefix ceil_at_parent "" - -GIT_CEILING_DIRECTORIES="$ROOT_PARENT/" -test_prefix ceil_at_parent_slash "" - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT" -test_prefix ceil_at_trash "" - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/" -test_prefix ceil_at_trash_slash "" - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/sub" -test_prefix ceil_at_sub "" - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/sub/" -test_prefix ceil_at_sub_slash "" - -if test_have_prereq SYMLINKS -then - ln -s sub top -fi - -mkdir -p sub/dir || exit 1 -cd sub/dir || exit 1 - -unset GIT_CEILING_DIRECTORIES -test_prefix subdir_no_ceil "sub/dir/" - -export GIT_CEILING_DIRECTORIES - -GIT_CEILING_DIRECTORIES="" -test_prefix subdir_ceil_empty "sub/dir/" - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT" -test_fail subdir_ceil_at_trash - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/" -test_fail subdir_ceil_at_trash_slash - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/sub" -test_fail subdir_ceil_at_sub - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/sub/" -test_fail subdir_ceil_at_sub_slash - -if test_have_prereq SYMLINKS -then - GIT_CEILING_DIRECTORIES="$TRASH_ROOT/top" - test_fail subdir_ceil_at_top - GIT_CEILING_DIRECTORIES="$TRASH_ROOT/top/" - test_fail subdir_ceil_at_top_slash - - GIT_CEILING_DIRECTORIES=":$TRASH_ROOT/top" - test_prefix subdir_ceil_at_top_no_resolve "sub/dir/" - GIT_CEILING_DIRECTORIES=":$TRASH_ROOT/top/" - test_prefix subdir_ceil_at_top_slash_no_resolve "sub/dir/" -fi - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/sub/dir" -test_prefix subdir_ceil_at_subdir "sub/dir/" - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/sub/dir/" -test_prefix subdir_ceil_at_subdir_slash "sub/dir/" - - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/su" -test_prefix subdir_ceil_at_su "sub/dir/" - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/su/" -test_prefix subdir_ceil_at_su_slash "sub/dir/" - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/sub/di" -test_prefix subdir_ceil_at_sub_di "sub/dir/" - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/sub/di" -test_prefix subdir_ceil_at_sub_di_slash "sub/dir/" - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/subdi" -test_prefix subdir_ceil_at_subdi "sub/dir/" - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/subdi" -test_prefix subdir_ceil_at_subdi_slash "sub/dir/" - - -GIT_CEILING_DIRECTORIES="/foo:$TRASH_ROOT/sub" -test_fail second_of_two - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/sub:/bar" -test_fail first_of_two - -GIT_CEILING_DIRECTORIES="/foo:$TRASH_ROOT/sub:/bar" -test_fail second_of_three - - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/sub" -GIT_DIR=../../.git -export GIT_DIR -test_prefix git_dir_specified "" -unset GIT_DIR - - -cd ../.. || exit 1 -mkdir -p s/d || exit 1 -cd s/d || exit 1 - -unset GIT_CEILING_DIRECTORIES -test_prefix sd_no_ceil "s/d/" - -export GIT_CEILING_DIRECTORIES - -GIT_CEILING_DIRECTORIES="" -test_prefix sd_ceil_empty "s/d/" - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT" -test_fail sd_ceil_at_trash - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/" -test_fail sd_ceil_at_trash_slash - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/s" -test_fail sd_ceil_at_s - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/s/" -test_fail sd_ceil_at_s_slash - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/s/d" -test_prefix sd_ceil_at_sd "s/d/" - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/s/d/" -test_prefix sd_ceil_at_sd_slash "s/d/" - - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/su" -test_prefix sd_ceil_at_su "s/d/" - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/su/" -test_prefix sd_ceil_at_su_slash "s/d/" - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/s/di" -test_prefix sd_ceil_at_s_di "s/d/" - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/s/di" -test_prefix sd_ceil_at_s_di_slash "s/d/" - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/sdi" -test_prefix sd_ceil_at_sdi "s/d/" - -GIT_CEILING_DIRECTORIES="$TRASH_ROOT/sdi" -test_prefix sd_ceil_at_sdi_slash "s/d/" - - -test_done |