summaryrefslogtreecommitdiff
path: root/addRepo.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-06 15:52:43 -0600
committerJeff Carr <[email protected]>2024-11-06 15:52:43 -0600
commit32c023ac384eaf19d2f3a72e736632d465382d3e (patch)
tree2656ae7cd77f449f8ad07cebc29fea356801b303 /addRepo.go
parentea894bdfe02ab691c934397e9d9ace356910f88e (diff)
add argv --keep-files
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'addRepo.go')
-rw-r--r--addRepo.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/addRepo.go b/addRepo.go
index 9b6d0eb..6f6e7f4 100644
--- a/addRepo.go
+++ b/addRepo.go
@@ -1,6 +1,7 @@
package main
import (
+ "os"
"strings"
"time"
@@ -59,6 +60,11 @@ func (c *controlBox) addRepo(path string) {
log.Info("path did not work", path, err)
return
}
+ if repo == nil {
+ log.Info("repo == nil", path, err)
+ os.Exit(-1)
+ return
+ }
c.status = repo
// c.status.SetMainWorkingName("master")
// c.status.SetDevelWorkingName("devel")