Let's try this...

This commit is contained in:
Azareal 2018-04-04 08:49:54 +01:00
parent 7bc94bfa83
commit 29aa0ae381
1 changed files with 6 additions and 2 deletions

View File

@ -60,8 +60,12 @@ func updater(scanner *bufio.Scanner) bool {
return logError(err) return logError(err)
} }
err = workTree.Pull(&git.PullOptions{RemoteName: "origin"}) //err = workTree.Pull(&git.PullOptions{RemoteName: "origin"})
if err != nil { err = workTree.Pull(&git.PullOptions{Force: true})
if err == git.NoErrAlreadyUpToDate {
fmt.Println("You are already up-to-date")
return true
} else if err != nil {
return logError(err) return logError(err)
} }