From b6c96bbfd14baff70932dd9fb4722d8e32f38a58 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sun, 30 Jan 2022 11:33:37 +0700 Subject: 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. --- testdata/beku_test.git/hooks/pre-applypatch.sample | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100755 testdata/beku_test.git/hooks/pre-applypatch.sample (limited to 'testdata/beku_test.git/hooks/pre-applypatch.sample') 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+"$@"} -: -- cgit v1.3