about summary refs log tree commit diff
path: root/third_party/git/t/lib-terminal.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/lib-terminal.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/lib-terminal.sh')
-rw-r--r--third_party/git/t/lib-terminal.sh36
1 files changed, 0 insertions, 36 deletions
diff --git a/third_party/git/t/lib-terminal.sh b/third_party/git/t/lib-terminal.sh
deleted file mode 100644
index e3809dcead18..000000000000
--- a/third_party/git/t/lib-terminal.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-# Helpers for terminal output tests.
-
-# Catch tests which should depend on TTY but forgot to. There's no need
-# to additionally check that the TTY prereq is set here.  If the test declared
-# it and we are running the test, then it must have been set.
-test_terminal () {
-	if ! test_declared_prereq TTY
-	then
-		echo >&4 "test_terminal: need to declare TTY prerequisite"
-		return 127
-	fi
-	perl "$TEST_DIRECTORY"/test-terminal.perl "$@" 2>&7
-} 7>&2 2>&4
-
-test_lazy_prereq TTY '
-	test_have_prereq PERL &&
-
-	# Reading from the pty master seems to get stuck _sometimes_
-	# on Mac OS X 10.5.0, using Perl 5.10.0 or 5.8.9.
-	#
-	# Reproduction recipe: run
-	#
-	#	i=0
-	#	while ./test-terminal.perl echo hi $i
-	#	do
-	#		: $((i = $i + 1))
-	#	done
-	#
-	# After 2000 iterations or so it hangs.
-	# https://rt.cpan.org/Ticket/Display.html?id=65692
-	#
-	test "$(uname -s)" != Darwin &&
-
-	perl "$TEST_DIRECTORY"/test-terminal.perl \
-		sh -c "test -t 1 && test -t 2"
-'