add GL_REPO_NAME variable to the pull request

This commit is contained in:
Alexander Machehin 2015-03-12 15:56:45 +05:00
parent e57f221002
commit 59cca17abc
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ class PullRequest < ActiveRecord::Base
system "git config user.name \"#{who.uname}\" && git config user.email \"#{who.email}\""
res = merge
if commit.id != repo.commits(to_ref).first.id
res2 = %x(export GL_ID=user-#{who.id} && git push origin HEAD)
res2 = %x(export GL_ID=user-#{who.id} GL_REPO_NAME=#{to_project.path} && git push origin HEAD)
system("git reset --hard HEAD^") # for diff maybe FIXME
if old_commit.id == to_project.repo.commits(to_ref).first.id