6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-08 04:04:18 +00:00

Simplify RepoStatus unit tests

This commit is contained in:
Grzegorz Dlugoszewski
2020-05-19 11:22:41 +02:00
parent 17ec470340
commit a0f09ef74d
2 changed files with 37 additions and 26 deletions

View File

@@ -11,7 +11,7 @@ type RepoStatus struct {
BranchStatuses []BranchStatus
}
func Status(path string) (RepoStatus, error) {
func NewRepoStatus(path string) (RepoStatus, error) {
var status RepoStatus
repo, err := git.OpenRepository(path)