summaryrefslogtreecommitdiff
path: root/addRepo.go
diff options
context:
space:
mode:
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")