diff options
author | Vincent Ambo <mail@tazj.in> | 2021-09-21T10·03+0300 |
---|---|---|
committer | Vincent Ambo <mail@tazj.in> | 2021-09-21T11·29+0300 |
commit | 43b1791ec601732ac31195df96781a848360a9ac (patch) | |
tree | daae8d638343295d2f1f7da955e556ef4c958864 /third_party/git/t/t0012-help.sh | |
parent | 2d8e7dc9d9c38127ec4ebd13aee8e8f586a43318 (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/t0012-help.sh')
-rwxr-xr-x | third_party/git/t/t0012-help.sh | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/third_party/git/t/t0012-help.sh b/third_party/git/t/t0012-help.sh deleted file mode 100755 index e8ef7300ecb8..000000000000 --- a/third_party/git/t/t0012-help.sh +++ /dev/null @@ -1,88 +0,0 @@ -#!/bin/sh - -test_description='help' - -. ./test-lib.sh - -configure_help () { - test_config help.format html && - - # Unless the path has "://" in it, Git tries to make sure - # the documentation directory locally exists. Avoid it as - # we are only interested in seeing an attempt to correctly - # invoke a help browser in this test. - test_config help.htmlpath test://html && - - # Name a custom browser - test_config browser.test.cmd ./test-browser && - test_config help.browser test -} - -test_expect_success "setup" ' - # Just write out which page gets requested - write_script test-browser <<-\EOF - echo "$*" >test-browser.log - EOF -' - -# make sure to exercise these code paths, the output is a bit tricky -# to verify -test_expect_success 'basic help commands' ' - git help >/dev/null && - git help -a --no-verbose >/dev/null && - git help -g >/dev/null && - git help -a >/dev/null -' - -test_expect_success "works for commands and guides by default" ' - configure_help && - git help status && - echo "test://html/git-status.html" >expect && - test_cmp expect test-browser.log && - git help revisions && - echo "test://html/gitrevisions.html" >expect && - test_cmp expect test-browser.log -' - -test_expect_success "--exclude-guides does not work for guides" ' - >test-browser.log && - test_must_fail git help --exclude-guides revisions && - test_must_be_empty test-browser.log -' - -test_expect_success "--help does not work for guides" " - cat <<-EOF >expect && - git: 'revisions' is not a git command. See 'git --help'. - EOF - test_must_fail git revisions --help 2>actual && - test_i18ncmp expect actual -" - -test_expect_success 'git help' ' - git help >help.output && - test_i18ngrep "^ clone " help.output && - test_i18ngrep "^ add " help.output && - test_i18ngrep "^ log " help.output && - test_i18ngrep "^ commit " help.output && - test_i18ngrep "^ fetch " help.output -' -test_expect_success 'git help -g' ' - git help -g >help.output && - test_i18ngrep "^ attributes " help.output && - test_i18ngrep "^ everyday " help.output && - test_i18ngrep "^ tutorial " help.output -' - -test_expect_success 'generate builtin list' ' - git --list-cmds=builtins >builtins -' - -while read builtin -do - test_expect_success "$builtin can handle -h" ' - test_expect_code 129 git $builtin -h >output 2>&1 && - test_i18ngrep usage output - ' -done <builtins - -test_done |