Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Combine old and current behaviour

  • Loading branch information...
commit 08b03a342e30cf6026e4861c89057370f7a5fac6 1 parent f409289
@akzhan akzhan authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/git_commit_notifier/diff_to_html.rb
View
2  lib/git_commit_notifier/diff_to_html.rb
@@ -161,7 +161,7 @@ def operation_description
# TODO: these filenames, etc, should likely be properly html escaped
if config['link_files']
file_name = if config["link_files"] == "gitweb" && config["gitweb"]
- "<a href='#{config['gitweb']['path']}?p=#{config['gitweb']['project']}.git;f=#{file_name};h=#{@current_sha};hb=#{@current_commit}'>#{file_name}</a>"
+ "<a href='#{config['gitweb']['path']}?p=#{config['gitweb']['project'] || Git.repo_name}.git;f=#{file_name};h=#{@current_sha};hb=#{@current_commit}'>#{file_name}</a>"
elsif config["link_files"] == "gitorious" && config["gitorious"]
"<a href='#{config['gitorious']['path']}/#{config['gitorious']['project']}/#{config['gitorious']['repository']}/blobs/#{branch_name}/#{file_name}'>#{file_name}</a>"
elsif config["link_files"] == "cgit" && config["cgit"]
Please sign in to comment.
Something went wrong with that request. Please try again.