about summary refs log tree commit diff
path: root/third_party/git/t/t9138-git-svn-authors-prog.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/t9138-git-svn-authors-prog.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/t9138-git-svn-authors-prog.sh')
-rwxr-xr-xthird_party/git/t/t9138-git-svn-authors-prog.sh107
1 files changed, 0 insertions, 107 deletions
diff --git a/third_party/git/t/t9138-git-svn-authors-prog.sh b/third_party/git/t/t9138-git-svn-authors-prog.sh
deleted file mode 100755
index 027b416720dd..000000000000
--- a/third_party/git/t/t9138-git-svn-authors-prog.sh
+++ /dev/null
@@ -1,107 +0,0 @@
-#!/bin/sh
-#
-# Copyright (c) 2009 Eric Wong, Mark Lodato
-#
-
-test_description='git svn authors prog tests'
-
-. ./lib-git-svn.sh
-
-write_script svn-authors-prog "$PERL_PATH" <<-\EOF
-	$_ = shift;
-	if (s/-hermit//) {
-		print "$_ <>\n";
-	} elsif (s/-sub$//)  {
-		print "$_ <$_\@sub.example.com>\n";
-	} else {
-		print "$_ <$_\@example.com>\n";
-	}
-EOF
-
-test_expect_success 'svn-authors setup' '
-	cat >svn-authors <<-\EOF
-	ff = FFFFFFF FFFFFFF <fFf@other.example.com>
-	EOF
-'
-
-test_expect_success 'setup svnrepo' '
-	for i in aa bb cc-sub dd-sub ee-foo ff
-	do
-		svn mkdir -m $i --username $i "$svnrepo"/$i
-	done
-'
-
-test_expect_success 'import authors with prog and file' '
-	git svn clone --authors-prog=./svn-authors-prog \
-	    --authors-file=svn-authors "$svnrepo" x
-'
-
-test_expect_success 'imported 6 revisions successfully' '
-	(
-		cd x &&
-		git rev-list refs/remotes/git-svn >actual &&
-		test_line_count = 6 actual
-	)
-'
-
-test_expect_success 'authors-prog ran correctly' '
-	(
-		cd x &&
-		git rev-list -1 --pretty=raw refs/remotes/git-svn~1 >actual &&
-		grep "^author ee-foo <ee-foo@example\.com> " actual &&
-		git rev-list -1 --pretty=raw refs/remotes/git-svn~2 >actual &&
-		grep "^author dd <dd@sub\.example\.com> " actual &&
-		git rev-list -1 --pretty=raw refs/remotes/git-svn~3 >actual &&
-		grep "^author cc <cc@sub\.example\.com> " actual &&
-		git rev-list -1 --pretty=raw refs/remotes/git-svn~4 >actual &&
-		grep "^author bb <bb@example\.com> " actual &&
-		git rev-list -1 --pretty=raw refs/remotes/git-svn~5 >actual &&
-		grep "^author aa <aa@example\.com> " actual
-	)
-'
-
-test_expect_success 'authors-file overrode authors-prog' '
-	(
-		cd x &&
-		git rev-list -1 --pretty=raw refs/remotes/git-svn >actual &&
-		grep "^author FFFFFFF FFFFFFF <fFf@other\.example\.com> " actual
-	)
-'
-
-git --git-dir=x/.git config --unset svn.authorsfile
-git --git-dir=x/.git config --unset svn.authorsprog
-
-test_expect_success 'authors-prog imported user without email' '
-	svn mkdir -m gg --username gg-hermit "$svnrepo"/gg &&
-	(
-		cd x &&
-		git svn fetch --authors-prog=../svn-authors-prog &&
-		git rev-list -1 --pretty=raw refs/remotes/git-svn | \
-		  grep "^author gg <> "
-	)
-'
-
-test_expect_success 'imported without authors-prog and authors-file' '
-	svn mkdir -m hh --username hh "$svnrepo"/hh &&
-	(
-		uuid=$(svn info "$svnrepo" |
-			sed -n "s/^Repository UUID: //p") &&
-		cd x &&
-		git svn fetch &&
-		git rev-list -1 --pretty=raw refs/remotes/git-svn | \
-		  grep "^author hh <hh@$uuid> "
-	)
-'
-
-test_expect_success 'authors-prog handled special characters in username' '
-	svn mkdir -m bad --username "xyz; touch evil" "$svnrepo"/bad &&
-	(
-		cd x &&
-		git svn --authors-prog=../svn-authors-prog fetch &&
-		git rev-list -1 --pretty=raw refs/remotes/git-svn >actual &&
-		grep "^author xyz; touch evil <xyz; touch evil@example\.com> " actual &&
-		! test -f evil
-	)
-'
-
-test_done