Auto-merge: checking via AJAX
This commit is contained in:
parent
f145450415
commit
8269a3a735
6 changed files with 43 additions and 10 deletions
|
@ -29,6 +29,7 @@ class GitlabMerge
|
|||
|
||||
def pull
|
||||
self.project.repo.git.clone({:branch => merge_request.target_branch}, project.url_to_repo, merge_path)
|
||||
#TODO When user do not have permissions then raise exception
|
||||
Dir.chdir(merge_path) do
|
||||
merge_repo = Grit::Repo.new('.')
|
||||
merge_repo.git.sh "git config user.name \"#{user.name}\""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue