about summary refs log tree commit diff
path: root/third_party/git/t/t5511-refspec.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/t5511-refspec.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/t5511-refspec.sh')
-rwxr-xr-xthird_party/git/t/t5511-refspec.sh94
1 files changed, 0 insertions, 94 deletions
diff --git a/third_party/git/t/t5511-refspec.sh b/third_party/git/t/t5511-refspec.sh
deleted file mode 100755
index f541f30bc2f8..000000000000
--- a/third_party/git/t/t5511-refspec.sh
+++ /dev/null
@@ -1,94 +0,0 @@
-#!/bin/sh
-
-test_description='refspec parsing'
-
-. ./test-lib.sh
-
-test_refspec () {
-	kind=$1 refspec=$2 expect=$3
-	git config remote.frotz.url "." &&
-	git config --remove-section remote.frotz &&
-	git config remote.frotz.url "." &&
-	git config "remote.frotz.$kind" "$refspec" &&
-	if test "$expect" != invalid
-	then
-		title="$kind $refspec"
-		test='git ls-remote frotz'
-	else
-		title="$kind $refspec (invalid)"
-		test='test_must_fail git ls-remote frotz'
-	fi
-	test_expect_success "$title" "$test"
-}
-
-test_refspec push ''						invalid
-test_refspec push ':'
-test_refspec push '::'						invalid
-test_refspec push '+:'
-
-test_refspec fetch ''
-test_refspec fetch ':'
-test_refspec fetch '::'						invalid
-
-test_refspec push 'refs/heads/*:refs/remotes/frotz/*'
-test_refspec push 'refs/heads/*:refs/remotes/frotz'		invalid
-test_refspec push 'refs/heads:refs/remotes/frotz/*'		invalid
-test_refspec push 'refs/heads/master:refs/remotes/frotz/xyzzy'
-
-
-# These have invalid LHS, but we do not have a formal "valid sha-1
-# expression syntax checker" so they are not checked with the current
-# code.  They will be caught downstream anyway, but we may want to
-# have tighter check later...
-
-: test_refspec push 'refs/heads/master::refs/remotes/frotz/xyzzy'	invalid
-: test_refspec push 'refs/heads/maste :refs/remotes/frotz/xyzzy'	invalid
-
-test_refspec fetch 'refs/heads/*:refs/remotes/frotz/*'
-test_refspec fetch 'refs/heads/*:refs/remotes/frotz'		invalid
-test_refspec fetch 'refs/heads:refs/remotes/frotz/*'		invalid
-test_refspec fetch 'refs/heads/master:refs/remotes/frotz/xyzzy'
-test_refspec fetch 'refs/heads/master::refs/remotes/frotz/xyzzy'	invalid
-test_refspec fetch 'refs/heads/maste :refs/remotes/frotz/xyzzy'	invalid
-
-test_refspec push 'master~1:refs/remotes/frotz/backup'
-test_refspec fetch 'master~1:refs/remotes/frotz/backup'		invalid
-test_refspec push 'HEAD~4:refs/remotes/frotz/new'
-test_refspec fetch 'HEAD~4:refs/remotes/frotz/new'		invalid
-
-test_refspec push 'HEAD'
-test_refspec fetch 'HEAD'
-test_refspec push 'refs/heads/ nitfol'				invalid
-test_refspec fetch 'refs/heads/ nitfol'				invalid
-
-test_refspec push 'HEAD:'					invalid
-test_refspec fetch 'HEAD:'
-test_refspec push 'refs/heads/ nitfol:'				invalid
-test_refspec fetch 'refs/heads/ nitfol:'			invalid
-
-test_refspec push ':refs/remotes/frotz/deleteme'
-test_refspec fetch ':refs/remotes/frotz/HEAD-to-me'
-test_refspec push ':refs/remotes/frotz/delete me'		invalid
-test_refspec fetch ':refs/remotes/frotz/HEAD to me'		invalid
-
-test_refspec fetch 'refs/heads/*/for-linus:refs/remotes/mine/*-blah'
-test_refspec push 'refs/heads/*/for-linus:refs/remotes/mine/*-blah'
-
-test_refspec fetch 'refs/heads*/for-linus:refs/remotes/mine/*'
-test_refspec push 'refs/heads*/for-linus:refs/remotes/mine/*'
-
-test_refspec fetch 'refs/heads/*/*/for-linus:refs/remotes/mine/*' invalid
-test_refspec push 'refs/heads/*/*/for-linus:refs/remotes/mine/*' invalid
-
-test_refspec fetch 'refs/heads/*g*/for-linus:refs/remotes/mine/*' invalid
-test_refspec push 'refs/heads/*g*/for-linus:refs/remotes/mine/*' invalid
-
-test_refspec fetch 'refs/heads/*/for-linus:refs/remotes/mine/*'
-test_refspec push 'refs/heads/*/for-linus:refs/remotes/mine/*'
-
-good=$(printf '\303\204')
-test_refspec fetch "refs/heads/${good}"
-bad=$(printf '\011tab')
-test_refspec fetch "refs/heads/${bad}"				invalid
-
-test_done