Skip to content

Commit

Permalink
fix issues 89
Browse files Browse the repository at this point in the history
  • Loading branch information
Ye Yang committed Jun 24, 2019
1 parent c2a3d1c commit d033727
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions driver/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (driver *GitDriver) Bump(bump version.Bump) (semver.Version, error) {

var newVersion semver.Version

for {
for i := 1; i <= maxRetries; i++ {
err = driver.setUpRepo()
if err != nil {
return semver.Version{}, err
Expand All @@ -73,7 +73,10 @@ func (driver *GitDriver) Bump(bump version.Bump) (semver.Version, error) {
wrote, err := driver.writeVersion(newVersion)
if wrote {
break
}
}
}
if err != nil {
return semver.Version{}, err
}

return newVersion, nil
Expand Down

0 comments on commit d033727

Please sign in to comment.