diff --git a/app/models/pull_request.rb b/app/models/pull_request.rb index 2d485dfce..3d16a87f7 100644 --- a/app/models/pull_request.rb +++ b/app/models/pull_request.rb @@ -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