Skip to content

Commit

Permalink
Print version even outside repo
Browse files Browse the repository at this point in the history
  • Loading branch information
derekparker committed Apr 29, 2014
1 parent a27060b commit 9c2bb3f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ func main() {
return
}

if opts.Version {
fmt.Printf("Pear version %s\n", version)
os.Exit(0)
}

gitconfig, err := initGitConfig(opts)
if err != nil {
printStderrAndDie(err)
Expand All @@ -113,11 +118,6 @@ func main() {
os.Exit(0)
}

if opts.Version {
fmt.Printf("Pear version %s\n", version)
os.Exit(0)
}

conf, err := readPearrc(pearrcpath())
if err != nil {
printStderrAndDie(err)
Expand Down

0 comments on commit 9c2bb3f

Please sign in to comment.