Skip to content
Snippets Groups Projects
Commit 20c70644 authored by dannylongeuay's avatar dannylongeuay Committed by Christoph Witzko
Browse files

chore(*): :wrench: handle err and style func args

parent e80c6078
No related branches found
No related tags found
No related merge requests found
......@@ -152,7 +152,7 @@ func createRepo() (*Repository, error) {
return repo, nil
}
func cloneRepo(path string, url string) (*Repository, error) {
func cloneRepo(path, url string) (*Repository, error) {
_, err := git.PlainClone(path, false, &git.CloneOptions{
Auth: &http.BasicAuth{
Username: "test",
......@@ -212,6 +212,7 @@ func getCommitsNoFFMerge(t *testing.T) {
repo, err := cloneRepo(dir, "http://localhost:3000/test/no_ff_merge.git")
require.NoError(err)
releases, err := repo.GetReleases("")
require.NoError(err)
require.Len(releases, 1)
initialCommitSha := releases[0].GetSHA()
commits, err := repo.GetCommits(initialCommitSha, "master")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment