Skip to content

Commit

Permalink
Merge pull request #1 from d-tsuji/patch
Browse files Browse the repository at this point in the history
fix internal to handle error
  • Loading branch information
sadayuki-matsuno authored Apr 15, 2020
2 parents 3a8a18d + b6b9b68 commit 1a76fab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ func Action(c *cli.Context) error {
}

var gitOrgName string
gitURL, _ := exec.Command("git", "config", "--get", "remote.origin.url").Output()
if len(gitURL) == 0 {
gitURL, err := exec.Command("git", "config", "--get", "remote.origin.url").Output()
if err != nil || len(gitURL) == 0 {
gitOrgName = path.Base(pwd)
} else {
gitOrgName = path.Base(path.Dir(string(gitURL)))
Expand Down

0 comments on commit 1a76fab

Please sign in to comment.