Can't delete ghost branches
Created by: soullivaneuh
In one project of our Gitlab, we have some ghost branches starting by origin/*
:
I'm talking about ghost branches because this branches doesn't appear on git cli:
# Did it after a fresh git clone of the project.
$ git branch --all
* master
remotes/origin/846
remotes/origin/860
remotes/origin/886
remotes/origin/926
remotes/origin/928
remotes/origin/935
remotes/origin/938
remotes/origin/HEAD -> origin/master
remotes/origin/dc
remotes/origin/develop
remotes/origin/hotfix
remotes/origin/master
remotes/origin/pre_production
remotes/origin/unit_tests
As you can see branch origin/11_Finalisation_outil_reporting
and origin/CGU_FRONT
seems to not exists.
And it's just an example. For this project, gitlab web GUI is showing 131 branches, most starting by origin/
name.
If I try to delete one of this branch on GUI, the webserver response seems to be OK, but the concerned branch reappear immediately if I refresh the branches list page.
Here, an extract of production.log
:
Started DELETE "/mygroup/www/branches/origin/11_Finalisation_outil_reporting" for 127.0.0.1 at 2015-02-03 11:24:21 +0100
Processing by Projects::BranchesController#destroy as JS
Parameters: {"project_id"=>"mygroup/www", "id"=>"origin/11_Finalisation_outil_reporting"}
Completed 200 OK in 305ms (Views: 8.0ms | ActiveRecord: 2.6ms)
Started GET "/mygroup/www/branches" for 127.0.0.1 at 2015-02-03 11:24:22 +0100
Processing by Projects::BranchesController#index as HTML
Parameters: {"project_id"=>"mygroup/www"}
Completed 200 OK in 161ms (Views: 140.0ms | ActiveRecord: 4.1ms)
I don't have any more information, can't determinate the source of the problem.
I'm using:
- Gitlab ->
7.7.2 bd98290
, latest version - Gitlab shell ->
2.4.2
- git ->
1.8.5.2
Thanks for your help.