about summary refs log tree commit diff
path: root/third_party/git/t/t4138-apply-ws-expansion.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/t4138-apply-ws-expansion.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/t4138-apply-ws-expansion.sh')
-rwxr-xr-xthird_party/git/t/t4138-apply-ws-expansion.sh121
1 files changed, 0 insertions, 121 deletions
diff --git a/third_party/git/t/t4138-apply-ws-expansion.sh b/third_party/git/t/t4138-apply-ws-expansion.sh
deleted file mode 100755
index b19faeb67a..0000000000
--- a/third_party/git/t/t4138-apply-ws-expansion.sh
+++ /dev/null
@@ -1,121 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) 2015 Kyle J. McKay
-#
-
-test_description='git apply test patches with whitespace expansion.'
-
-. ./test-lib.sh
-
-test_expect_success setup '
-	#
-	## create test-N, patchN.patch, expect-N files
-	#
-
-	# test 1
-	printf "\t%s\n" 1 2 3 4 5 6 >before &&
-	printf "\t%s\n" 1 2 3 >after &&
-	printf "%64s\n" a b c >>after &&
-	printf "\t%s\n" 4 5 6 >>after &&
-	test_expect_code 1 git diff --no-index before after >patch1.patch.raw &&
-	sed -e "s/before/test-1/" -e "s/after/test-1/" patch1.patch.raw >patch1.patch &&
-	printf "%64s\n" 1 2 3 4 5 6 >test-1 &&
-	printf "%64s\n" 1 2 3 a b c 4 5 6 >expect-1 &&
-
-	# test 2
-	printf "\t%s\n" a b c d e f >before &&
-	printf "\t%s\n" a b c >after &&
-	n=10 &&
-	x=1 &&
-	while test $x -lt $n
-	do
-		printf "%63s%d\n" "" $x >>after
-		x=$(( $x + 1 ))
-	done &&
-	printf "\t%s\n" d e f >>after &&
-	test_expect_code 1 git diff --no-index before after >patch2.patch.raw &&
-	sed -e "s/before/test-2/" -e "s/after/test-2/" patch2.patch.raw >patch2.patch &&
-	printf "%64s\n" a b c d e f >test-2 &&
-	printf "%64s\n" a b c >expect-2 &&
-	x=1 &&
-	while test $x -lt $n
-	do
-		printf "%63s%d\n" "" $x >>expect-2
-		x=$(( $x + 1 ))
-	done &&
-	printf "%64s\n" d e f >>expect-2 &&
-
-	# test 3
-	printf "\t%s\n" a b c d e f >before &&
-	printf "\t%s\n" a b c >after &&
-	n=100 &&
-	x=0 &&
-	while test $x -lt $n
-	do
-		printf "%63s%02d\n" "" $x >>after
-		x=$(( $x + 1 ))
-	done &&
-	printf "\t%s\n" d e f >>after &&
-	test_expect_code 1 git diff --no-index before after >patch3.patch.raw &&
-	sed -e "s/before/test-3/" -e "s/after/test-3/" patch3.patch.raw >patch3.patch &&
-	printf "%64s\n" a b c d e f >test-3 &&
-	printf "%64s\n" a b c >expect-3 &&
-	x=0 &&
-	while test $x -lt $n
-	do
-		printf "%63s%02d\n" "" $x >>expect-3
-		x=$(( $x + 1 ))
-	done &&
-	printf "%64s\n" d e f >>expect-3 &&
-
-	# test 4
-	>before &&
-	x=0 &&
-	while test $x -lt 50
-	do
-		printf "\t%02d\n" $x >>before
-		x=$(( $x + 1 ))
-	done &&
-	cat before >after &&
-	printf "%64s\n" a b c >>after &&
-	while test $x -lt 100
-	do
-		printf "\t%02d\n" $x >>before
-		printf "\t%02d\n" $x >>after
-		x=$(( $x + 1 ))
-	done &&
-	test_expect_code 1 git diff --no-index before after >patch4.patch.raw &&
-	sed -e "s/before/test-4/" -e "s/after/test-4/" patch4.patch.raw >patch4.patch &&
-	>test-4 &&
-	x=0 &&
-	while test $x -lt 50
-	do
-		printf "%63s%02d\n" "" $x >>test-4
-		x=$(( $x + 1 ))
-	done &&
-	cat test-4 >expect-4 &&
-	printf "%64s\n" a b c >>expect-4 &&
-	while test $x -lt 100
-	do
-		printf "%63s%02d\n" "" $x >>test-4
-		printf "%63s%02d\n" "" $x >>expect-4
-		x=$(( $x + 1 ))
-	done &&
-
-	git config core.whitespace tab-in-indent,tabwidth=63 &&
-	git config apply.whitespace fix
-
-'
-
-# Note that `patch` can successfully apply all patches when run
-# with the --ignore-whitespace option.
-
-for t in 1 2 3 4
-do
-	test_expect_success 'apply with ws expansion (t=$t)' '
-		git apply patch$t.patch &&
-		test_cmp expect-$t test-$t
-	'
-done
-
-test_done