about summary refs log tree commit diff
path: root/third_party/git/t/t9817-git-p4-exclude.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/t9817-git-p4-exclude.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/t9817-git-p4-exclude.sh')
-rwxr-xr-xthird_party/git/t/t9817-git-p4-exclude.sh108
1 files changed, 0 insertions, 108 deletions
diff --git a/third_party/git/t/t9817-git-p4-exclude.sh b/third_party/git/t/t9817-git-p4-exclude.sh
deleted file mode 100755
index ec3d937c6a73..000000000000
--- a/third_party/git/t/t9817-git-p4-exclude.sh
+++ /dev/null
@@ -1,108 +0,0 @@
-#!/bin/sh
-
-test_description='git p4 tests for excluded paths during clone and sync'
-
-. ./lib-git-p4.sh
-
-test_expect_success 'start p4d' '
-	start_p4d
-'
-
-# Create a repo with the structure:
-#
-#    //depot/wanted/foo
-#    //depot/discard/foo
-#
-# Check that we can exclude a subdirectory with both
-# clone and sync operations.
-
-test_expect_success 'create exclude repo' '
-	(
-		cd "$cli" &&
-		mkdir -p wanted discard &&
-		echo wanted >wanted/foo &&
-		echo discard >discard/foo &&
-		echo discard_file >discard_file &&
-		echo discard_file_not >discard_file_not &&
-		p4 add wanted/foo discard/foo discard_file discard_file_not &&
-		p4 submit -d "initial revision"
-	)
-'
-
-test_expect_success 'check the repo was created correctly' '
-	test_when_finished cleanup_git &&
-	git p4 clone --dest="$git" //depot/...@all &&
-	(
-		cd "$git" &&
-		test_path_is_file wanted/foo &&
-		test_path_is_file discard/foo &&
-		test_path_is_file discard_file &&
-		test_path_is_file discard_file_not
-	)
-'
-
-test_expect_success 'clone, excluding part of repo' '
-	test_when_finished cleanup_git &&
-	git p4 clone -//depot/discard/... --dest="$git" //depot/...@all &&
-	(
-		cd "$git" &&
-		test_path_is_file wanted/foo &&
-		test_path_is_missing discard/foo &&
-		test_path_is_file discard_file &&
-		test_path_is_file discard_file_not
-	)
-'
-
-test_expect_success 'clone, excluding single file, no trailing /' '
-	test_when_finished cleanup_git &&
-	git p4 clone -//depot/discard_file --dest="$git" //depot/...@all &&
-	(
-		cd "$git" &&
-		test_path_is_file wanted/foo &&
-		test_path_is_file discard/foo &&
-		test_path_is_missing discard_file &&
-		test_path_is_file discard_file_not
-	)
-'
-
-test_expect_success 'clone, then sync with exclude' '
-	test_when_finished cleanup_git &&
-	git p4 clone -//depot/discard/... --dest="$git" //depot/...@all &&
-	(
-		cd "$cli" &&
-		p4 edit wanted/foo discard/foo discard_file_not &&
-		date >>wanted/foo &&
-		date >>discard/foo &&
-		date >>discard_file_not &&
-		p4 submit -d "updating" &&
-
-		cd "$git" &&
-		git p4 sync -//depot/discard/... &&
-		test_path_is_file wanted/foo &&
-		test_path_is_missing discard/foo &&
-		test_path_is_file discard_file &&
-		test_path_is_file discard_file_not
-	)
-'
-
-test_expect_success 'clone, then sync with exclude, no trailing /' '
-	test_when_finished cleanup_git &&
-	git p4 clone -//depot/discard/... -//depot/discard_file --dest="$git" //depot/...@all &&
-	(
-		cd "$cli" &&
-		p4 edit wanted/foo discard/foo discard_file_not &&
-		date >>wanted/foo &&
-		date >>discard/foo &&
-		date >>discard_file_not &&
-		p4 submit -d "updating" &&
-
-		cd "$git" &&
-		git p4 sync -//depot/discard/... -//depot/discard_file &&
-		test_path_is_file wanted/foo &&
-		test_path_is_missing discard/foo &&
-		test_path_is_missing discard_file &&
-		test_path_is_file discard_file_not
-	)
-'
-
-test_done