Skip to content

Commit

Permalink
Merge pull request #101 from concourse/fix-typo
Browse files Browse the repository at this point in the history
fix function name typo
  • Loading branch information
James Thomson authored Sep 4, 2019
2 parents 2872779 + 46f6783 commit 790e42e
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions driver/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ func (driver *GitDriver) Bump(bump version.Bump) (semver.Version, error) {

var newVersion semver.Version

err = driver.skipSSLVerificationIfSet()
if err != nil {
return semver.Version{}, err
}
err = driver.skipSSLVerificationIfNeeded()
if err != nil {
return semver.Version{}, err
}

for {
err = driver.setUpRepo()
Expand Down Expand Up @@ -96,10 +96,10 @@ func (driver *GitDriver) Set(newVersion semver.Version) error {
return err
}

err = driver.skipSSLVerificationIfSet()
if err != nil {
return err
}
err = driver.skipSSLVerificationIfNeeded()
if err != nil {
return err
}

for {
err = driver.setUpRepo()
Expand Down Expand Up @@ -131,10 +131,10 @@ func (driver *GitDriver) Check(cursor *semver.Version) ([]semver.Version, error)
return nil, err
}

err = driver.skipSSLVerificationIfSet()
if err != nil {
return nil, err
}
err = driver.skipSSLVerificationIfNeeded()
if err != nil {
return nil, err
}

currentVersion, exists, err := driver.readVersion()
if err != nil {
Expand Down Expand Up @@ -188,13 +188,13 @@ func (driver *GitDriver) setUpRepo() error {

func (driver *GitDriver) skipSSLVerificationIfNeeded() error {
if driver.SkipSSLVerification {
gitSkipSSLVerification := exec.Command("git", "config", "http.sslVerify", "'false'")
gitSkipSSLVerification.Stdout = os.Stderr
gitSkipSSLVerification.Stderr = os.Stderr
if err := gitSkipSSLVerification.Run(); err != nil {
return err
}
}
gitSkipSSLVerification := exec.Command("git", "config", "http.sslVerify", "'false'")
gitSkipSSLVerification.Stdout = os.Stderr
gitSkipSSLVerification.Stderr = os.Stderr
if err := gitSkipSSLVerification.Run(); err != nil {
return err
}
}

return nil
}
Expand Down

0 comments on commit 790e42e

Please sign in to comment.