Skip to content

Faster merge request processing for large repository

Matthias Käppler requested to merge github/fork/nicklegr/faster_auto_merge into master

Created by: nicklegr

I have large repository (~10GB) on my own GitLab server. This repository has long history (1-2 years) and large commits (~100MB).

It takes a few minutes to merge testing and auto merging. I found that git checkout __parking_branch takes a long time. Because __parking_branch is never updated, there is large difference between master and __parking_branch.

I tried following commands, and git checkout got significantly faster.

sudo su git
cd /home/git/gitlab-satellites/path/to/repos
git checkout -B __parking_branch master
git checkout master

This pull request may fix this problem, by reseting __parking_branch to HEAD everytime.

Merge request reports

Loading