{"thread":{"id":"22663","subject":"StGIT: \"ghost\" branch (unable to either create or delete)","startedAt":"2010-02-15T19:22:55Z","lastAt":"2010-02-15T19:22:55Z","messageCount":1,"participants":["Andrey Borzenkov"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"134656","messageId":"201002152223.00871.arvidjaar@mail.ru","threadId":"22663","inReplyTo":null,"subject":"StGIT: \"ghost\" branch (unable to either create or delete)","fromName":"Andrey Borzenkov","fromEmail":"arvidjaar@mail.ru","sentAt":"2010-02-15T19:22:55Z","receivedAt":"2010-02-15T19:22:55Z","isPatch":false,"sender":{"key":"arvidjaar@mail.ru","avatar":null},"body":"{pts/1}% stg branch --delete --force tmp\nDeleting branch \"tmp\" ... stg branch: Branch \"tmp\" not initialised\n{pts/1}% stg branch --clone tmp\nChecking for changes in the working directory ... done\nCloning current branch to \"tmp\" ... stg branch: tmp already initialized\n\n\nI am not sure exactly how it happened. Using 0.14.3 and up-to-date GIY \nrecently I started to get \"git failed with code 128\" for large number of \noperations. Apparently this resulted in sort of \"ghost\" branch that \ncannot be deleted but cannot be worked with either\n\n{pts/1}% stg branch -c tmp\nChecking for changes in the working directory ... done\nRecording as a local branch                           \nBranch \"tmp\" created                                  \n{pts/1}% stg branch -l\nAvailable branches:   \n  s     initscripts  | \n  s     local-mdv    | \n        master       | \n        mdv          | \n> s     tmp          | \n{pts/1}% stg branch local-mdv\nChecking for changes in the working directory ... done\nSwitching to branch \"local-mdv\" ... done              \n{pts/1}% stg branch --delete tmp\nDeleting branch \"tmp\" ...       \n  stg branch: git failed with code 128\n{pts/1}% stg branch -l          \nAvailable branches:             \n  s     initscripts  |          \n> s     local-mdv    |          \n        master       |          \n        mdv          |          \n{pts/1}% stg branch --clone tmp\nChecking for changes in the working directory ... done\nCloning current branch to \"tmp\" ...                   \n  stg branch: tmp already initialized                 \n\nAnd now I have\n\n{pts/1}% cat .git/config\n[core]                  \n        repositoryformatversion = 0\n        filemode = true            \n        bare = false               \n        logallrefupdates = true    \n[remote \"origin\"]                  \n        fetch = +refs/heads/*:refs/remotes/origin/*\n        url = ssh://git.mandriva.com/projects/networkmanager.git\n[branch \"master\"]                                               \n        remote = origin                                         \n        merge = refs/heads/master                               \n[branch \"initscripts.stgit\"]                                    \n        parentbranch = mdv                                      \n        stackformatversion = 2                                  \n[branch \"local-mdv.stgit\"]                                      \n        parentbranch = mdv                                      \n        stackformatversion = 2                                  \n[remote \"upstream\"]                                             \n        url = \ngit://anongit.freedesktop.org/NetworkManager/NetworkManager.git\n        fetch = +refs/heads/*:refs/remotes/upstream/*                        \n[branch \"tmp.stgit\"]                                                         \n        parentbranch = local-mdv                                             \n        stackformatversion = 2                                               \n\nI would expect, stgit branch --delete --force to allow cleanups from \nsuch cases.\n"}]}