add user identificator when merging pull request

This commit is contained in:
Alexander Machehin 2013-03-07 22:41:59 +06:00
parent da5ef38eda
commit 21e7588d0e
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ class PullRequest < ActiveRecord::Base
Dir.chdir(path) do Dir.chdir(path) do
system "git config user.name \"#{who.uname}\" && git config user.email \"#{who.email}\"" system "git config user.name \"#{who.uname}\" && git config user.email \"#{who.email}\""
if merge if merge
system("git push origin HEAD") system("export GL_ID=user#{who.id} && git push origin HEAD")
system("git reset --hard HEAD^") # for diff maybe FIXME system("git reset --hard HEAD^") # for diff maybe FIXME
set_user_and_time who set_user_and_time who
merging merging