about summary refs log tree commit diff
path: root/third_party/git/t/t7602-merge-octopus-many.sh
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-09-21T10·03+0300
committerVincent Ambo <mail@tazj.in>2021-09-21T11·29+0300
commit43b1791ec601732ac31195df96781a848360a9ac (patch)
treedaae8d638343295d2f1f7da955e556ef4c958864 /third_party/git/t/t7602-merge-octopus-many.sh
parent2d8e7dc9d9c38127ec4ebd13aee8e8f586a43318 (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/t7602-merge-octopus-many.sh')
-rwxr-xr-xthird_party/git/t/t7602-merge-octopus-many.sh101
1 files changed, 0 insertions, 101 deletions
diff --git a/third_party/git/t/t7602-merge-octopus-many.sh b/third_party/git/t/t7602-merge-octopus-many.sh
deleted file mode 100755
index 6abe441ae361..000000000000
--- a/third_party/git/t/t7602-merge-octopus-many.sh
+++ /dev/null
@@ -1,101 +0,0 @@
-#!/bin/sh
-
-test_description='git merge
-
-Testing octopus merge with more than 25 refs.'
-
-. ./test-lib.sh
-
-test_expect_success 'setup' '
-	echo c0 > c0.c &&
-	git add c0.c &&
-	git commit -m c0 &&
-	git tag c0 &&
-	i=1 &&
-	while test $i -le 30
-	do
-		git reset --hard c0 &&
-		echo c$i > c$i.c &&
-		git add c$i.c &&
-		git commit -m c$i &&
-		git tag c$i &&
-		i=$(expr $i + 1) || return 1
-	done
-'
-
-test_expect_success 'merge c1 with c2, c3, c4, ... c29' '
-	git reset --hard c1 &&
-	i=2 &&
-	refs="" &&
-	while test $i -le 30
-	do
-		refs="$refs c$i"
-		i=$(expr $i + 1)
-	done &&
-	git merge $refs &&
-	test "$(git rev-parse c1)" != "$(git rev-parse HEAD)" &&
-	i=1 &&
-	while test $i -le 30
-	do
-		test "$(git rev-parse c$i)" = "$(git rev-parse HEAD^$i)" &&
-		i=$(expr $i + 1) || return 1
-	done &&
-	git diff --exit-code &&
-	i=1 &&
-	while test $i -le 30
-	do
-		test -f c$i.c &&
-		i=$(expr $i + 1) || return 1
-	done
-'
-
-cat >expected <<\EOF
-Trying simple merge with c2
-Trying simple merge with c3
-Trying simple merge with c4
-Merge made by the 'octopus' strategy.
- c2.c | 1 +
- c3.c | 1 +
- c4.c | 1 +
- 3 files changed, 3 insertions(+)
- create mode 100644 c2.c
- create mode 100644 c3.c
- create mode 100644 c4.c
-EOF
-
-test_expect_success 'merge output uses pretty names' '
-	git reset --hard c1 &&
-	git merge c2 c3 c4 >actual &&
-	test_i18ncmp expected actual
-'
-
-cat >expected <<\EOF
-Merge made by the 'recursive' strategy.
- c5.c | 1 +
- 1 file changed, 1 insertion(+)
- create mode 100644 c5.c
-EOF
-
-test_expect_success 'merge reduces irrelevant remote heads' '
-	GIT_MERGE_VERBOSITY=0 git merge c4 c5 >actual &&
-	test_i18ncmp expected actual
-'
-
-cat >expected <<\EOF
-Fast-forwarding to: c1
-Trying simple merge with c2
-Merge made by the 'octopus' strategy.
- c1.c | 1 +
- c2.c | 1 +
- 2 files changed, 2 insertions(+)
- create mode 100644 c1.c
- create mode 100644 c2.c
-EOF
-
-test_expect_success 'merge fast-forward output uses pretty names' '
-	git reset --hard c0 &&
-	git merge c1 c2 >actual &&
-	test_i18ncmp expected actual
-'
-
-test_done