Skip to content

Commit e7e78e5

Browse files
author
scott Chacon
committed
added a small fix from Shu-yu Guo <shu at rfrn.org> to not pass-thru $COMMIT_SHA:$PATH
1 parent 1f40e40 commit e7e78e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/git/lib.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def full_log_commits(opts = {})
8181
sha = revparse(opts[:object] || branch_current || 'master')
8282
count = opts[:count] || 30
8383

84-
if /\w{40}/.match(sha) # valid sha
84+
if /\w{40}$/.match(sha) # valid sha
8585
repo = get_raw_repo
8686
return process_commit_data(repo.log(sha, count))
8787
end

0 commit comments

Comments
 (0)