diff options
| author | Shulhan <ms@kilabit.info> | 2022-01-30 11:33:37 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-01-30 11:33:37 +0700 |
| commit | b6c96bbfd14baff70932dd9fb4722d8e32f38a58 (patch) | |
| tree | b57c79df3134c6759aa827316a72a385f3b6ff86 /testdata/beku_test.git/hooks/pre-applypatch.sample | |
| parent | b5f28512de8cf3fcc7fe31fb7c11570816f86a0f (diff) | |
| download | beku-b6c96bbfd14baff70932dd9fb4722d8e32f38a58.tar.xz | |
all: replace beku_test in testdata with gitsubmodule
Previously, the beku_test is bare clone of git repository stored as is.
This cause an initial clone of the beku repository itself does not
recognize it as git repository, which make the test fail:
go test -v -coverprofile=cover.out ./... || rm -f cover.out
fatal: '/home/ms/go/src/git.sr.ht/~shulhan/beku/testdata/beku_test.git' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
2022/01/30 10:56:19 gitInstall: Clone: exit status 128
FAIL github.com/shuLhan/beku 0.008s
This changes make the testdata/beku_test.git as git submodule, to make
the test run well.
Diffstat (limited to 'testdata/beku_test.git/hooks/pre-applypatch.sample')
| -rwxr-xr-x | testdata/beku_test.git/hooks/pre-applypatch.sample | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/testdata/beku_test.git/hooks/pre-applypatch.sample b/testdata/beku_test.git/hooks/pre-applypatch.sample deleted file mode 100755 index 4142082..0000000 --- a/testdata/beku_test.git/hooks/pre-applypatch.sample +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh -# -# An example hook script to verify what is about to be committed -# by applypatch from an e-mail message. -# -# The hook should exit with non-zero status after issuing an -# appropriate message if it wants to stop the commit. -# -# To enable this hook, rename this file to "pre-applypatch". - -. git-sh-setup -precommit="$(git rev-parse --git-path hooks/pre-commit)" -test -x "$precommit" && exec "$precommit" ${1+"$@"} -: |
