about summary refs log tree commit diff
path: root/third_party/git/t/t1511-rev-parse-caret.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/t1511-rev-parse-caret.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/t1511-rev-parse-caret.sh')
-rwxr-xr-xthird_party/git/t/t1511-rev-parse-caret.sh131
1 files changed, 0 insertions, 131 deletions
diff --git a/third_party/git/t/t1511-rev-parse-caret.sh b/third_party/git/t/t1511-rev-parse-caret.sh
deleted file mode 100755
index e0a49a651fdd..000000000000
--- a/third_party/git/t/t1511-rev-parse-caret.sh
+++ /dev/null
@@ -1,131 +0,0 @@
-#!/bin/sh
-
-test_description='tests for ref^{stuff}'
-
-. ./test-lib.sh
-
-test_expect_success 'setup' '
-	echo blob >a-blob &&
-	git tag -a -m blob blob-tag $(git hash-object -w a-blob) &&
-	mkdir a-tree &&
-	echo moreblobs >a-tree/another-blob &&
-	git add . &&
-	TREE_SHA1=$(git write-tree) &&
-	git tag -a -m tree tree-tag "$TREE_SHA1" &&
-	git commit -m Initial &&
-	git tag -a -m commit commit-tag &&
-	git branch ref &&
-	git checkout master &&
-	echo modified >>a-blob &&
-	git add -u &&
-	git commit -m Modified &&
-	git branch modref &&
-	echo changed! >>a-blob &&
-	git add -u &&
-	git commit -m !Exp &&
-	git branch expref &&
-	echo changed >>a-blob &&
-	git add -u &&
-	git commit -m Changed &&
-	echo changed-again >>a-blob &&
-	git add -u &&
-	git commit -m Changed-again
-'
-
-test_expect_success 'ref^{non-existent}' '
-	test_must_fail git rev-parse ref^{non-existent}
-'
-
-test_expect_success 'ref^{}' '
-	git rev-parse ref >expected &&
-	git rev-parse ref^{} >actual &&
-	test_cmp expected actual &&
-	git rev-parse commit-tag^{} >actual &&
-	test_cmp expected actual
-'
-
-test_expect_success 'ref^{commit}' '
-	git rev-parse ref >expected &&
-	git rev-parse ref^{commit} >actual &&
-	test_cmp expected actual &&
-	git rev-parse commit-tag^{commit} >actual &&
-	test_cmp expected actual &&
-	test_must_fail git rev-parse tree-tag^{commit} &&
-	test_must_fail git rev-parse blob-tag^{commit}
-'
-
-test_expect_success 'ref^{tree}' '
-	echo $TREE_SHA1 >expected &&
-	git rev-parse ref^{tree} >actual &&
-	test_cmp expected actual &&
-	git rev-parse commit-tag^{tree} >actual &&
-	test_cmp expected actual &&
-	git rev-parse tree-tag^{tree} >actual &&
-	test_cmp expected actual &&
-	test_must_fail git rev-parse blob-tag^{tree}
-'
-
-test_expect_success 'ref^{tag}' '
-	test_must_fail git rev-parse HEAD^{tag} &&
-	git rev-parse commit-tag >expected &&
-	git rev-parse commit-tag^{tag} >actual &&
-	test_cmp expected actual
-'
-
-test_expect_success 'ref^{/.}' '
-	git rev-parse master >expected &&
-	git rev-parse master^{/.} >actual &&
-	test_cmp expected actual
-'
-
-test_expect_success 'ref^{/non-existent}' '
-	test_must_fail git rev-parse master^{/non-existent}
-'
-
-test_expect_success 'ref^{/Initial}' '
-	git rev-parse ref >expected &&
-	git rev-parse master^{/Initial} >actual &&
-	test_cmp expected actual
-'
-
-test_expect_success 'ref^{/!Exp}' '
-	test_must_fail git rev-parse master^{/!Exp}
-'
-
-test_expect_success 'ref^{/!}' '
-	test_must_fail git rev-parse master^{/!}
-'
-
-test_expect_success 'ref^{/!!Exp}' '
-	git rev-parse expref >expected &&
-	git rev-parse master^{/!!Exp} >actual &&
-	test_cmp expected actual
-'
-
-test_expect_success 'ref^{/!-}' '
-	test_must_fail git rev-parse master^{/!-}
-'
-
-test_expect_success 'ref^{/!-.}' '
-	test_must_fail git rev-parse master^{/!-.}
-'
-
-test_expect_success 'ref^{/!-non-existent}' '
-	git rev-parse master >expected &&
-	git rev-parse master^{/!-non-existent} >actual &&
-	test_cmp expected actual
-'
-
-test_expect_success 'ref^{/!-Changed}' '
-	git rev-parse expref >expected &&
-	git rev-parse master^{/!-Changed} >actual &&
-	test_cmp expected actual
-'
-
-test_expect_success 'ref^{/!-!Exp}' '
-	git rev-parse modref >expected &&
-	git rev-parse expref^{/!-!Exp} >actual &&
-	test_cmp expected actual
-'
-
-test_done