From e7e78e5191a8e9f269cb001e79434a2a4ba8e7c1 Mon Sep 17 00:00:00 2001 From: scott Chacon Date: Thu, 31 Jan 2008 09:50:15 -0800 Subject: added a small fix from Shu-yu Guo to not pass-thru $COMMIT_SHA:$PATH --- lib/git/lib.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git/lib.rb b/lib/git/lib.rb index 3aafc4b..1a60be6 100644 --- a/lib/git/lib.rb +++ b/lib/git/lib.rb @@ -81,7 +81,7 @@ module Git sha = revparse(opts[:object] || branch_current || 'master') count = opts[:count] || 30 - if /\w{40}/.match(sha) # valid sha + if /\w{40}$/.match(sha) # valid sha repo = get_raw_repo return process_commit_data(repo.log(sha, count)) end -- cgit