• Stan Hu's avatar
    Create the source branch for a GitHub import · e34a3213
    Stan Hu authored
    When the GitHub importer creates a merge request, it retrieves the SHA
    but does not actually create the source branch. This makes it impossible
    to merge an open merge request, particularly if the source branch were
    from a forked project. In that case, the branch will never exist because
    the original `project-name:source-branch` name is never created, nor
    is it a valid branch name.
    
    To prevent possible branch name conflicts, forked source branches
    are now renamed `github/fork/project-name/source-branch` and created
    when necessary.
    
    Note that we only create the source branch if the merge request
    is open. For projects that have many merge requests, the project
    would end up with a lot of possibly dead branches.
    
    Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/57370
    e34a3213
Name
Last commit
Last update
..
bin Loading commit data...
config Loading commit data...
controllers Loading commit data...
db Loading commit data...
dependencies Loading commit data...
factories Loading commit data...
features Loading commit data...
finders Loading commit data...
fixtures Loading commit data...
frontend Loading commit data...
graphql Loading commit data...
helpers Loading commit data...
initializers Loading commit data...
javascripts Loading commit data...
lib Loading commit data...
mailers Loading commit data...
migrations Loading commit data...
models Loading commit data...
policies Loading commit data...
presenters Loading commit data...
rack_servers Loading commit data...
requests Loading commit data...
routing Loading commit data...
rubocop Loading commit data...
serializers Loading commit data...
services Loading commit data...
sidekiq/cron Loading commit data...
support Loading commit data...
tasks Loading commit data...
uploaders Loading commit data...
validators Loading commit data...
views Loading commit data...
workers Loading commit data...
factories_spec.rb Loading commit data...
fast_spec_helper.rb Loading commit data...
rails_helper.rb Loading commit data...
rake_helper.rb Loading commit data...
simplecov_env.rb Loading commit data...
spec_helper.rb Loading commit data...