Skip to content

Commit

Permalink
Use the dirname of the current file, not the file
Browse files Browse the repository at this point in the history
  • Loading branch information
toolmantim committed Jun 21, 2008
1 parent dd90c59 commit 335c576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gitnotify.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def self.post_commit
end

def self.post_commit_script
File.join(__FILE__, "..", "supports", "post-commit")
File.join(File.dirname(__FILE__), "..", "supports", "post-commit")
end

def self.growl(title, message)
Expand Down

0 comments on commit 335c576

Please sign in to comment.