summaryrefslogtreecommitdiffstats
path: root/lib/git/lib.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/lib.rb')
-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