add GL_REPO_NAME variable to the pull request
This commit is contained in:
parent
e57f221002
commit
59cca17abc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue