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/t5403-post-checkout-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/t5403-post-checkout-hook.sh')
-rwxr-xr-x | third_party/git/t/t5403-post-checkout-hook.sh | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/third_party/git/t/t5403-post-checkout-hook.sh b/third_party/git/t/t5403-post-checkout-hook.sh deleted file mode 100755 index a39b3b5c78bc..000000000000 --- a/third_party/git/t/t5403-post-checkout-hook.sh +++ /dev/null @@ -1,76 +0,0 @@ -#!/bin/sh -# -# Copyright (c) 2006 Josh England -# - -test_description='Test the post-checkout hook.' -. ./test-lib.sh - -test_expect_success setup ' - mkdir -p .git/hooks && - write_script .git/hooks/post-checkout <<-\EOF && - echo "$@" >.git/post-checkout.args - EOF - test_commit one && - test_commit two && - test_commit rebase-on-me && - git reset --hard HEAD^ && - test_commit three -' - -test_expect_success 'post-checkout receives the right arguments with HEAD unchanged ' ' - test_when_finished "rm -f .git/post-checkout.args" && - git checkout master && - read old new flag <.git/post-checkout.args && - test $old = $new && test $flag = 1 -' - -test_expect_success 'post-checkout args are correct with git checkout -b ' ' - test_when_finished "rm -f .git/post-checkout.args" && - git checkout -b new1 && - read old new flag <.git/post-checkout.args && - test $old = $new && test $flag = 1 -' - -test_expect_success 'post-checkout receives the right args with HEAD changed ' ' - test_when_finished "rm -f .git/post-checkout.args" && - git checkout two && - read old new flag <.git/post-checkout.args && - test $old != $new && test $flag = 1 -' - -test_expect_success 'post-checkout receives the right args when not switching branches ' ' - test_when_finished "rm -f .git/post-checkout.args" && - git checkout master -- three.t && - read old new flag <.git/post-checkout.args && - test $old = $new && test $flag = 0 -' - -test_expect_success 'post-checkout is triggered on rebase' ' - test_when_finished "rm -f .git/post-checkout.args" && - git checkout -b rebase-test master && - rm -f .git/post-checkout.args && - git rebase rebase-on-me && - read old new flag <.git/post-checkout.args && - test $old != $new && test $flag = 1 -' - -test_expect_success 'post-checkout is triggered on rebase with fast-forward' ' - test_when_finished "rm -f .git/post-checkout.args" && - git checkout -b ff-rebase-test rebase-on-me^ && - rm -f .git/post-checkout.args && - git rebase rebase-on-me && - read old new flag <.git/post-checkout.args && - test $old != $new && test $flag = 1 -' - -test_expect_success 'post-checkout hook is triggered by clone' ' - mkdir -p templates/hooks && - write_script templates/hooks/post-checkout <<-\EOF && - echo "$@" >"$GIT_DIR/post-checkout.args" - EOF - git clone --template=templates . clone3 && - test -f clone3/.git/post-checkout.args -' - -test_done |