summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscott Chacon <schacon@agadorsparticus.(none)>2008-01-31 09:50:15 -0800
committerscott Chacon <schacon@agadorsparticus.(none)>2008-01-31 09:50:15 -0800
commite7e78e5191a8e9f269cb001e79434a2a4ba8e7c1 (patch)
tree0bf178b7b67dbd08ef44d254cd73b73e7bd4ed6f
parent1f40e4014c9196279b47977daf323b5a8e2f8ae2 (diff)
downloadthird_party-ruby-git-e7e78e5191a8e9f269cb001e79434a2a4ba8e7c1.zip
third_party-ruby-git-e7e78e5191a8e9f269cb001e79434a2a4ba8e7c1.tar.gz
third_party-ruby-git-e7e78e5191a8e9f269cb001e79434a2a4ba8e7c1.tar.xz
added a small fix from Shu-yu Guo <shu at rfrn.org> to not pass-thru $COMMIT_SHA:$PATH
-rw-r--r--lib/git/lib.rb2
1 files changed, 1 insertions, 1 deletions
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