Skip to content

Commit

Permalink
update usage color and exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Jan 5, 2017
1 parent 5d88998 commit 219656f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Expand Up @@ -3,9 +3,6 @@ go:
- 1.7.4
- tip
sudo: false
before_install:
- export GOPATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace:$GOPATH"
- export PATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace/bin:$PATH"
script:
- go vet
- go test -v
Expand Down
4 changes: 2 additions & 2 deletions main.go
Expand Up @@ -66,8 +66,8 @@ func main() {
}
out, _ = git.Exec("diff", commit, "--staged")
default:
color.Red("Usage:\n git-hound commit [...]\n git-hound sniff [commit]")
os.Exit(1)
fmt.Print("Usage:\n git-hound commit [...]\n git-hound sniff [commit]\n")
os.Exit(0)
}

fileDiffs, err := diff.ParseMultiFileDiff([]byte(out))
Expand Down

0 comments on commit 219656f

Please sign in to comment.