diff options
Diffstat (limited to 'addRepo.go')
| -rw-r--r-- | addRepo.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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") |
