about summary refs log tree commit diff
path: root/third_party/git/t/t2003-checkout-cache-mkdir.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/t2003-checkout-cache-mkdir.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/t2003-checkout-cache-mkdir.sh')
-rwxr-xr-xthird_party/git/t/t2003-checkout-cache-mkdir.sh119
1 files changed, 0 insertions, 119 deletions
diff --git a/third_party/git/t/t2003-checkout-cache-mkdir.sh b/third_party/git/t/t2003-checkout-cache-mkdir.sh
deleted file mode 100755
index ff163cf6750f..000000000000
--- a/third_party/git/t/t2003-checkout-cache-mkdir.sh
+++ /dev/null
@@ -1,119 +0,0 @@
-#!/bin/sh
-#
-# Copyright (c) 2005 Junio C Hamano
-#
-
-test_description='git checkout-index --prefix test.
-
-This test makes sure that --prefix option works as advertised, and
-also verifies that such leading path may contain symlinks, unlike
-the GIT controlled paths.
-'
-
-. ./test-lib.sh
-
-test_expect_success 'setup' '
-	mkdir path1 &&
-	echo frotz >path0 &&
-	echo rezrov >path1/file1 &&
-	git update-index --add path0 path1/file1
-'
-
-test_expect_success SYMLINKS 'have symlink in place where dir is expected.' '
-	rm -fr path0 path1 &&
-	mkdir path2 &&
-	ln -s path2 path1 &&
-	git checkout-index -f -a &&
-	test ! -h path1 && test -d path1 &&
-	test -f path1/file1 && test ! -f path2/file1
-'
-
-test_expect_success 'use --prefix=path2/' '
-	rm -fr path0 path1 path2 &&
-	mkdir path2 &&
-	git checkout-index --prefix=path2/ -f -a &&
-	test -f path2/path0 &&
-	test -f path2/path1/file1 &&
-	test ! -f path0 &&
-	test ! -f path1/file1
-'
-
-test_expect_success 'use --prefix=tmp-' '
-	rm -fr path0 path1 path2 tmp* &&
-	git checkout-index --prefix=tmp- -f -a &&
-	test -f tmp-path0 &&
-	test -f tmp-path1/file1 &&
-	test ! -f path0 &&
-	test ! -f path1/file1
-'
-
-test_expect_success 'use --prefix=tmp- but with a conflicting file and dir' '
-	rm -fr path0 path1 path2 tmp* &&
-	echo nitfol >tmp-path1 &&
-	mkdir tmp-path0 &&
-	git checkout-index --prefix=tmp- -f -a &&
-	test -f tmp-path0 &&
-	test -f tmp-path1/file1 &&
-	test ! -f path0 &&
-	test ! -f path1/file1
-'
-
-test_expect_success SYMLINKS 'use --prefix=tmp/orary/ where tmp is a symlink' '
-	rm -fr path0 path1 path2 tmp* &&
-	mkdir tmp1 tmp1/orary &&
-	ln -s tmp1 tmp &&
-	git checkout-index --prefix=tmp/orary/ -f -a &&
-	test -d tmp1/orary &&
-	test -f tmp1/orary/path0 &&
-	test -f tmp1/orary/path1/file1 &&
-	test -h tmp
-'
-
-test_expect_success SYMLINKS 'use --prefix=tmp/orary- where tmp is a symlink' '
-	rm -fr path0 path1 path2 tmp* &&
-	mkdir tmp1 &&
-	ln -s tmp1 tmp &&
-	git checkout-index --prefix=tmp/orary- -f -a &&
-	test -f tmp1/orary-path0 &&
-	test -f tmp1/orary-path1/file1 &&
-	test -h tmp
-'
-
-test_expect_success SYMLINKS 'use --prefix=tmp- where tmp-path1 is a symlink' '
-	rm -fr path0 path1 path2 tmp* &&
-	mkdir tmp1 &&
-	ln -s tmp1 tmp-path1 &&
-	git checkout-index --prefix=tmp- -f -a &&
-	test -f tmp-path0 &&
-	test ! -h tmp-path1 &&
-	test -d tmp-path1 &&
-	test -f tmp-path1/file1
-'
-
-test_expect_success 'apply filter from working tree .gitattributes with --prefix' '
-	rm -fr path0 path1 path2 tmp* &&
-	mkdir path1 &&
-	mkdir tmp &&
-	git config filter.replace-all.smudge "sed -e s/./,/g" &&
-	git config filter.replace-all.clean cat &&
-	git config filter.replace-all.required true &&
-	echo "file1 filter=replace-all" >path1/.gitattributes &&
-	git checkout-index --prefix=tmp/ -f -a &&
-	echo frotz >expected &&
-	test_cmp expected tmp/path0 &&
-	echo ,,,,,, >expected &&
-	test_cmp expected tmp/path1/file1
-'
-
-test_expect_success 'apply CRLF filter from working tree .gitattributes with --prefix' '
-	rm -fr path0 path1 path2 tmp* &&
-	mkdir path1 &&
-	mkdir tmp &&
-	echo "file1 eol=crlf" >path1/.gitattributes &&
-	git checkout-index --prefix=tmp/ -f -a &&
-	echo rezrovQ >expected &&
-	tr \\015 Q <tmp/path1/file1 >actual &&
-	test_cmp expected actual
-'
-
-test_done