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/t5402-post-merge-hook.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/t5402-post-merge-hook.sh')
-rwxr-xr-x | third_party/git/t/t5402-post-merge-hook.sh | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/third_party/git/t/t5402-post-merge-hook.sh b/third_party/git/t/t5402-post-merge-hook.sh deleted file mode 100755 index 6eb2ffd6ecab..000000000000 --- a/third_party/git/t/t5402-post-merge-hook.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/sh -# -# Copyright (c) 2006 Josh England -# - -test_description='Test the post-merge hook.' -. ./test-lib.sh - -test_expect_success setup ' - echo Data for commit0. >a && - git update-index --add a && - tree0=$(git write-tree) && - commit0=$(echo setup | git commit-tree $tree0) && - echo Changed data for commit1. >a && - git update-index a && - tree1=$(git write-tree) && - commit1=$(echo modify | git commit-tree $tree1 -p $commit0) && - git update-ref refs/heads/master $commit0 && - git clone ./. clone1 && - GIT_DIR=clone1/.git git update-index --add a && - git clone ./. clone2 && - GIT_DIR=clone2/.git git update-index --add a -' - -for clone in 1 2; do - cat >clone${clone}/.git/hooks/post-merge <<'EOF' -#!/bin/sh -echo $@ >> $GIT_DIR/post-merge.args -EOF - chmod u+x clone${clone}/.git/hooks/post-merge -done - -test_expect_success 'post-merge does not run for up-to-date ' ' - GIT_DIR=clone1/.git git merge $commit0 && - ! test -f clone1/.git/post-merge.args -' - -test_expect_success 'post-merge runs as expected ' ' - GIT_DIR=clone1/.git git merge $commit1 && - test -e clone1/.git/post-merge.args -' - -test_expect_success 'post-merge from normal merge receives the right argument ' ' - grep 0 clone1/.git/post-merge.args -' - -test_expect_success 'post-merge from squash merge runs as expected ' ' - GIT_DIR=clone2/.git git merge --squash $commit1 && - test -e clone2/.git/post-merge.args -' - -test_expect_success 'post-merge from squash merge receives the right argument ' ' - grep 1 clone2/.git/post-merge.args -' - -test_done |