Bug 624258
Summary: | fedpkg overwrites the current branch when switch-branch fails | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Chuck Ebbert <cebbert> |
Component: | fedora-packager | Assignee: | David Cantrell <dcantrell> |
Status: | CLOSED INSUFFICIENT_DATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | rawhide | CC: | dcantrell, dennis |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-01-21 21:15:46 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Chuck Ebbert
2010-08-15 09:40:51 UTC
Ugh, that's neat. We're just calling out to git checkout for this, so git itself is eating your branch... If I use git directly I get: $ git checkout f13 error: pathspec 'f13' did not match any file(s) known to git. So fedpkg must be doing something different? ok, you've hit upon a scenario where convenience doesn't work for you. For convenience, I allow fedpkg switch-branch to use short names such as "f13" and "f14", and they create local branches named "f13" or "f14" but they track the remote f13/master or f14/master. Asking fedpkg to switch-branch to f14/master won't work as it doesn't know what to do with that. And in your case, since you already have local f13/<something> branches, fedpkg cannot create a local branch named "f13". I'm afraid that if local branches with naming of f??/<something> are going to be used, you'll have to use git directly. I'll have to make fedpkg alert the user when this scenario is encountered. Still doesn't explain why git is screwing with stuff. fedpkg was attempting to do: git checkout -b f13 --track origin/f13/master This message is a reminder that Fedora 12 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 12. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '12'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 12's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 12 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping |