Permalink
Browse files

Move the hook name to the hook, not the binary

The idea being, the git-tracker binary can do other things, like
actually install the hook via `git-tracker install pre-commit-hook` and
then actually run the hook via `git-tracker pre-commit-hook`, etc.

[#26437795]
  • Loading branch information...
1 parent a96d377 commit 799e960e6784c3b567055f2dfd1f60a651e7abee @stevenharman stevenharman committed Mar 23, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 bin/git-tracker
  2. +1 −1 prepare-commit-msg.example
View
2 bin/git-tracker
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
require 'git_tracker'
-GitTracker.execute('prepare-commit-msg', *ARGV)
+GitTracker.execute(*ARGV)
View
2 prepare-commit-msg.example
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
-git-tracker "$@"
+git-tracker prepare-commit-msg "$@"

0 comments on commit 799e960

Please sign in to comment.