about summary refs log tree commit diff
path: root/third_party/git/t/t1513-rev-parse-prefix.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/t1513-rev-parse-prefix.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/t1513-rev-parse-prefix.sh')
-rwxr-xr-xthird_party/git/t/t1513-rev-parse-prefix.sh96
1 files changed, 0 insertions, 96 deletions
diff --git a/third_party/git/t/t1513-rev-parse-prefix.sh b/third_party/git/t/t1513-rev-parse-prefix.sh
deleted file mode 100755
index 87ec3ae71488..000000000000
--- a/third_party/git/t/t1513-rev-parse-prefix.sh
+++ /dev/null
@@ -1,96 +0,0 @@
-#!/bin/sh
-
-test_description='Tests for rev-parse --prefix'
-
-. ./test-lib.sh
-
-test_expect_success 'setup' '
-	mkdir -p sub1/sub2 &&
-	echo top >top &&
-	echo file1 >sub1/file1 &&
-	echo file2 >sub1/sub2/file2 &&
-	git add top sub1/file1 sub1/sub2/file2 &&
-	git commit -m commit
-'
-
-test_expect_success 'empty prefix -- file' '
-	git rev-parse --prefix "" -- top sub1/file1 >actual &&
-	cat <<-\EOF >expected &&
-	--
-	top
-	sub1/file1
-	EOF
-	test_cmp expected actual
-'
-
-test_expect_success 'valid prefix -- file' '
-	git rev-parse --prefix sub1/ -- file1 sub2/file2 >actual &&
-	cat <<-\EOF >expected &&
-	--
-	sub1/file1
-	sub1/sub2/file2
-	EOF
-	test_cmp expected actual
-'
-
-test_expect_success 'valid prefix -- ../file' '
-	git rev-parse --prefix sub1/ -- ../top sub2/file2 >actual &&
-	cat <<-\EOF >expected &&
-	--
-	sub1/../top
-	sub1/sub2/file2
-	EOF
-	test_cmp expected actual
-'
-
-test_expect_success 'empty prefix HEAD:./path' '
-	git rev-parse --prefix "" HEAD:./top >actual &&
-	git rev-parse HEAD:top >expected &&
-	test_cmp expected actual
-'
-
-test_expect_success 'valid prefix HEAD:./path' '
-	git rev-parse --prefix sub1/ HEAD:./file1 >actual &&
-	git rev-parse HEAD:sub1/file1 >expected &&
-	test_cmp expected actual
-'
-
-test_expect_success 'valid prefix HEAD:../path' '
-	git rev-parse --prefix sub1/ HEAD:../top >actual &&
-	git rev-parse HEAD:top >expected &&
-	test_cmp expected actual
-'
-
-test_expect_success 'prefix ignored with HEAD:top' '
-	git rev-parse --prefix sub1/ HEAD:top >actual &&
-	git rev-parse HEAD:top >expected &&
-	test_cmp expected actual
-'
-
-test_expect_success 'disambiguate path with valid prefix' '
-	git rev-parse --prefix sub1/ file1 >actual &&
-	cat <<-\EOF >expected &&
-	sub1/file1
-	EOF
-	test_cmp expected actual
-'
-
-test_expect_success 'file and refs with prefix' '
-	git rev-parse --prefix sub1/ master file1 >actual &&
-	cat <<-EOF >expected &&
-	$(git rev-parse master)
-	sub1/file1
-	EOF
-	test_cmp expected actual
-'
-
-test_expect_success 'two-levels deep' '
-	git rev-parse --prefix sub1/sub2/ -- file2 >actual &&
-	cat <<-\EOF >expected &&
-	--
-	sub1/sub2/file2
-	EOF
-	test_cmp expected actual
-'
-
-test_done