From 43b1791ec601732ac31195df96781a848360a9ac Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 21 Sep 2021 13:03:01 +0300 Subject: chore(3p/git): Unvendor git and track patches instead 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 --- third_party/git/t/t4135/make-patches | 45 ------------------------------------ 1 file changed, 45 deletions(-) delete mode 100755 third_party/git/t/t4135/make-patches (limited to 'third_party/git/t/t4135/make-patches') diff --git a/third_party/git/t/t4135/make-patches b/third_party/git/t/t4135/make-patches deleted file mode 100755 index f5f45ddd099e..000000000000 --- a/third_party/git/t/t4135/make-patches +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - -do_filename() { - desc=$1 - postimage=$2 - - rm -fr file-creation && - git init file-creation && - ( - cd file-creation && - git commit --allow-empty -m init && - echo postimage >"$postimage" && - git add -N "$postimage" && - git diff HEAD >"../git-$desc.diff" - ) && - - rm -fr trad-modification && - mkdir trad-modification && - ( - cd trad-modification && - echo preimage >"$postimage.orig" && - echo postimage >"$postimage" && - ! diff -u "$postimage.orig" "$postimage" >"../diff-$desc.diff" - ) && - - rm -fr trad-creation && - mkdir trad-creation && - ( - cd trad-creation && - mkdir a b && - echo postimage >"b/$postimage" && - ! diff -pruN a b >"../add-$desc.diff" - ) -} - -do_filename plain postimage.txt && -do_filename 'with spaces' 'post image.txt' && -do_filename 'with tab' 'post image.txt' && -do_filename 'with backslash' 'post\image.txt' && -do_filename 'with quote' '"postimage".txt' && -expand add-plain.diff >damaged.diff || -{ - echo >&2 Failed. && - exit 1 -} -- cgit 1.4.1