mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45:47 +00:00
fix: cocommit would never ask to create an author file if non was found
This commit is contained in:
@@ -42,7 +42,7 @@ func Find_authorfile() string {
|
|||||||
panic(fmt.Sprintf("Error getting user config dir: %v", err))
|
panic(fmt.Sprintf("Error getting user config dir: %v", err))
|
||||||
}
|
}
|
||||||
if _, err := os.Stat(userconf+"/cocommit/authors.json"); os.IsNotExist(err) {
|
if _, err := os.Stat(userconf+"/cocommit/authors.json"); os.IsNotExist(err) {
|
||||||
panic(fmt.Sprintf("No author file set, please set the author_file environment variable or create a config file using the command: cocommit config -c"))
|
return userconf + "/cocommit/authors.json"
|
||||||
} else {
|
} else {
|
||||||
file = userconf + "/cocommit/authors.json"
|
file = userconf + "/cocommit/authors.json"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user