Skip to content

Commit

Permalink
fix: handle git-errors correctly
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Kotzbauer <[email protected]>
  • Loading branch information
ckotzbauer committed Aug 20, 2022
1 parent addc0ad commit a0346aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/target/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ func (g *GitAccount) alreadyCloned(path string) (*git.Repository, error) {

if err == git.ErrRepositoryNotExists {
return nil, nil
} else if err != nil {
return nil, err
}

return r, nil
Expand Down

0 comments on commit a0346aa

Please sign in to comment.