summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-13 13:52:35 -0600
committerJeff Carr <[email protected]>2024-12-13 13:52:35 -0600
commit02bbd75ce1d80f845673c30a004e35f9ce491ab6 (patch)
tree191a0e7de7c0866ad106828798580777e351d2c8
parent86f06c84199c1145712c19f7d432fe9e128f0fdb (diff)
try to restore first
-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")