Skip to content

Commit

Permalink
change the order of function parameter (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunNishimura committed Jun 4, 2023
1 parent 19fd9ea commit 73156ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/store/head.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func NewHead(rootGoitPath string) (*Head, error) {
if _, err := os.Stat(branchPath); os.IsNotExist(err) {
return head, nil
}
commit, err := getHeadCommit(rootGoitPath, branch)
commit, err := getHeadCommit(branch, rootGoitPath)
if err != nil {
return nil, ErrInvalidHead
}
Expand Down

0 comments on commit 73156ee

Please sign in to comment.