Skip to content

Commit

Permalink
Merge pull request #127 from motemen/fix-iss99
Browse files Browse the repository at this point in the history
don't panic when the current working directory doesn't exist.
  • Loading branch information
Songmu committed Apr 27, 2019
2 parents 6db039a + 6fff7f0 commit 6aa0830
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion local_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,10 @@ func localRepositoryRoots() []string {
} else {
var err error
_localRepositoryRoots, err = GitConfigAll("ghq.root")
logger.PanicIf(err)
if err != nil {
logger.Log("error", err.Error())
os.Exit(1)
}
}

if len(_localRepositoryRoots) == 0 {
Expand Down

0 comments on commit 6aa0830

Please sign in to comment.