fix already up-to-date
This commit is contained in:
parent
d22e2e77e6
commit
f07bae94fb
1 changed files with 5 additions and 1 deletions
4
main.go
4
main.go
|
@ -187,8 +187,12 @@ func main() {
|
|||
Password: *password,
|
||||
}
|
||||
if err := PushChanges(repo, *remote, auth); err != nil {
|
||||
if err == git.NoErrAlreadyUpToDate {
|
||||
log.Println("Already up-to-date")
|
||||
} else {
|
||||
log.Fatalf("%s", err)
|
||||
}
|
||||
}
|
||||
log.Println("Pushed changes to remote")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue