| Age | Commit message (Collapse) | Author |
|
|
|
|
|
Since vendoring is already handled by Go module, we remove this
feature to minimize duplication.
|
|
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.
|
|
Include all files from "git clone --bare" in testdata/beku_test.git.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Not all methods can be tested due to some operation requiring network
connection.
|
|
|
|
|
|
|
|
Also,
* add unit test for gitCompareVersion
* use defined variable for standard output and error so we can use it on
testing
|