Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #8720

Closed
Open
Created Feb 03, 2015 by Administrator@rootOwner

Can't delete ghost branches

Created by: soullivaneuh

In one project of our Gitlab, we have some ghost branches starting by origin/*:

gitlab_branches_remove_fail

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.

Assignee
Assign to
Time tracking