Skip to content

Commit

Permalink
Update log fatal message
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudingcity committed Feb 16, 2020
1 parent d9491a6 commit 5e65c84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ func Execute() {
func init() {
rootCmd.SetHelpCommand(&cobra.Command{Hidden: true})
cobra.OnInitialize(initConfig)

log.SetFlags(0)
}

var (
Expand Down
2 changes: 1 addition & 1 deletion internal/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func Clone(repo, dir string) error {
func CurrentRepo() string {
output, err := command("config", "--get", "remote.origin.url").Output()
if err != nil {
log.Fatal(err)
log.Fatal("fatal: not a git repository (or any of the parent directories): .git")
}
return utils.ParseGitProject(string(output))
}

0 comments on commit 5e65c84

Please sign in to comment.