admin: Don't consider non-git directory as Fatal
This commit is contained in:
parent
334512ef0d
commit
9a5347b8ef
@ -147,7 +147,7 @@ func main() {
|
||||
}
|
||||
if sync.GlobalImporter != nil {
|
||||
if err := sync.GlobalImporter.Init(); err != nil {
|
||||
log.Fatal("Unable to initialize the importer:", err)
|
||||
log.Fatal("Unable to initialize the importer: ", err.Error())
|
||||
}
|
||||
log.Println("Using", sync.GlobalImporter.Kind())
|
||||
|
||||
|
@ -82,7 +82,8 @@ func (i GitImporter) Init() error {
|
||||
}
|
||||
log.Println("Local git repository successfully cloned")
|
||||
} else if _, err := os.Stat(path.Join(i.li.Base, ".git")); errors.Is(err, os.ErrNotExist) {
|
||||
log.Fatal(i.li.Base, " is not a valid git repository and it cannot be initialized because it's not empty.")
|
||||
log.Println("[ERR] ", i.li.Base, " is not a valid git repository and it cannot be initialized because it's not empty.")
|
||||
return nil
|
||||
}
|
||||
|
||||
// Check if the .git directory exists, change the origin remote to our
|
||||
|
Loading…
x
Reference in New Issue
Block a user