Skip to content

Commit

Permalink
add panic back
Browse files Browse the repository at this point in the history
  • Loading branch information
nullbio committed May 28, 2017
1 parent f203f0c commit 0b8d745
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package git

import (
"bytes"
"fmt"
"os/exec"
"strings"

Expand All @@ -12,7 +13,11 @@ import (
var appPath string

func init() {
appPath, _ = getAppPath()
var err error
appPath, err = getAppPath()
if err != nil {
panic(fmt.Sprintf("unable to get app path, is this a valid git repo?: %s\n", err))
}
}

// GetAppPath executes the git cmd "git rev-parse --show-toplevel" to obtain
Expand Down

0 comments on commit 0b8d745

Please sign in to comment.