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/t1015-read-index-unmerged.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/t1015-read-index-unmerged.sh')
-rwxr-xr-x | third_party/git/t/t1015-read-index-unmerged.sh | 123 |
1 files changed, 0 insertions, 123 deletions
diff --git a/third_party/git/t/t1015-read-index-unmerged.sh b/third_party/git/t/t1015-read-index-unmerged.sh deleted file mode 100755 index 55d22da32ccd..000000000000 --- a/third_party/git/t/t1015-read-index-unmerged.sh +++ /dev/null @@ -1,123 +0,0 @@ -#!/bin/sh - -test_description='Test various callers of read_index_unmerged' -. ./test-lib.sh - -test_expect_success 'setup modify/delete + directory/file conflict' ' - test_create_repo df_plus_modify_delete && - ( - cd df_plus_modify_delete && - - test_write_lines a b c d e f g h >letters && - git add letters && - git commit -m initial && - - git checkout -b modify && - # Throw in letters.txt for sorting order fun - # ("letters.txt" sorts between "letters" and "letters/file") - echo i >>letters && - echo "version 2" >letters.txt && - git add letters letters.txt && - git commit -m modified && - - git checkout -b delete HEAD^ && - git rm letters && - mkdir letters && - >letters/file && - echo "version 1" >letters.txt && - git add letters letters.txt && - git commit -m deleted - ) -' - -test_expect_success 'read-tree --reset cleans unmerged entries' ' - test_when_finished "git -C df_plus_modify_delete clean -f" && - test_when_finished "git -C df_plus_modify_delete reset --hard" && - ( - cd df_plus_modify_delete && - - git checkout delete^0 && - test_must_fail git merge modify && - - git read-tree --reset HEAD && - git ls-files -u >conflicts && - test_must_be_empty conflicts - ) -' - -test_expect_success 'One reset --hard cleans unmerged entries' ' - test_when_finished "git -C df_plus_modify_delete clean -f" && - test_when_finished "git -C df_plus_modify_delete reset --hard" && - ( - cd df_plus_modify_delete && - - git checkout delete^0 && - test_must_fail git merge modify && - - git reset --hard && - test_path_is_missing .git/MERGE_HEAD && - git ls-files -u >conflicts && - test_must_be_empty conflicts - ) -' - -test_expect_success 'setup directory/file conflict + simple edit/edit' ' - test_create_repo df_plus_edit_edit && - ( - cd df_plus_edit_edit && - - test_seq 1 10 >numbers && - git add numbers && - git commit -m initial && - - git checkout -b d-edit && - mkdir foo && - echo content >foo/bar && - git add foo && - echo 11 >>numbers && - git add numbers && - git commit -m "directory and edit" && - - git checkout -b f-edit d-edit^1 && - echo content >foo && - git add foo && - echo eleven >>numbers && - git add numbers && - git commit -m "file and edit" - ) -' - -test_expect_success 'git merge --abort succeeds despite D/F conflict' ' - test_when_finished "git -C df_plus_edit_edit clean -f" && - test_when_finished "git -C df_plus_edit_edit reset --hard" && - ( - cd df_plus_edit_edit && - - git checkout f-edit^0 && - test_must_fail git merge d-edit^0 && - - git merge --abort && - test_path_is_missing .git/MERGE_HEAD && - git ls-files -u >conflicts && - test_must_be_empty conflicts - ) -' - -test_expect_success 'git am --skip succeeds despite D/F conflict' ' - test_when_finished "git -C df_plus_edit_edit clean -f" && - test_when_finished "git -C df_plus_edit_edit reset --hard" && - ( - cd df_plus_edit_edit && - - git checkout f-edit^0 && - git format-patch -1 d-edit && - test_must_fail git am -3 0001*.patch && - - git am --skip && - test_path_is_missing .git/rebase-apply && - git ls-files -u >conflicts && - test_must_be_empty conflicts - ) -' - -test_done |