diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/git/repository.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb index 8128d91480d..33787e5eae7 100644 --- a/lib/gitlab/git/repository.rb +++ b/lib/gitlab/git/repository.rb @@ -1222,6 +1222,8 @@ module Gitlab end def git_merged_branch_names(branch_names = []) + return [] unless root_ref + lines = run_git(['branch', '--merged', root_ref] + branch_names) .first.lines |