summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.go b/main.go
index 95a2bbb..5371daf 100644
--- a/main.go
+++ b/main.go
@@ -40,9 +40,10 @@ func main() {
// skip restore if --force
if !argv.Force {
+ cname := check.GetCurrentBranchName()
// try to restore from the git metadata
- if err := check.AutogenRestore(); err != nil {
- badExit(err)
+ if err := check.AutogenRestore(cname); err != nil {
+ // ignore errors here
}
if err := check.ValidGoSum(); err == nil {
okExit("go.mod and go.sum were restored ok")