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