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/t8004-blame-with-conflicts.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/t8004-blame-with-conflicts.sh')
-rwxr-xr-x | third_party/git/t/t8004-blame-with-conflicts.sh | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/third_party/git/t/t8004-blame-with-conflicts.sh b/third_party/git/t/t8004-blame-with-conflicts.sh deleted file mode 100755 index 9c353ab22276..000000000000 --- a/third_party/git/t/t8004-blame-with-conflicts.sh +++ /dev/null @@ -1,73 +0,0 @@ -#!/bin/sh - -# Based on a test case submitted by Björn Steinbrink. - -test_description='git blame on conflicted files' -. ./test-lib.sh - -test_expect_success 'setup first case' ' - # Create the old file - echo "Old line" > file1 && - git add file1 && - git commit --author "Old Line <ol@localhost>" -m file1.a && - - # Branch - git checkout -b foo && - - # Do an ugly move and change - git rm file1 && - echo "New line ..." > file2 && - echo "... and more" >> file2 && - git add file2 && - git commit --author "U Gly <ug@localhost>" -m ugly && - - # Back to master and change something - git checkout master && - echo " - -bla" >> file1 && - git commit --author "Old Line <ol@localhost>" -a -m file1.b && - - # Back to foo and merge master - git checkout foo && - if git merge master; then - echo needed conflict here - exit 1 - else - echo merge failed - resolving automatically - fi && - echo "New line ... -... and more - -bla -Even more" > file2 && - git rm file1 && - git commit --author "M Result <mr@localhost>" -a -m merged && - - # Back to master and change file1 again - git checkout master && - sed s/bla/foo/ <file1 >X && - rm file1 && - mv X file1 && - git commit --author "No Bla <nb@localhost>" -a -m replace && - - # Try to merge into foo again - git checkout foo && - if git merge master; then - echo needed conflict here - exit 1 - else - echo merge failed - test is setup - fi -' - -test_expect_success \ - 'blame runs on unconflicted file while other file has conflicts' ' - git blame file2 -' - -test_expect_success 'blame does not crash with conflicted file in stages 1,3' ' - git blame file1 -' - -test_done |