* git remote rm non-existant-remote
@ 2009-06-28 14:47 Brian Gernhardt
2009-06-28 16:11 ` Jeff King
0 siblings, 1 reply; 4+ messages in thread
From: Brian Gernhardt @ 2009-06-28 14:47 UTC (permalink / raw)
To: Git List
I was working on updating the remotes for one of my repositories
(adding a variety of forks) and renamed the origin branch. When I was
done, I tried to use "git remote rm origin" to remove the branches for
the now dead origin. What git-remote did was remove all of my remotes
and the merge information for my master branch (which was moved off
the origin remote).
This is a data loss bug. Very bad. `git remote rm` should either
refuse to remove a non-existent remote or (preferably) simply remove
any branches that exist for that remote.
When time allows I'll look into fixing this, but I thought I'd post in
case somebody had more tuits than me this week.
~~ Brian Gernhardt
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git remote rm non-existant-remote
2009-06-28 14:47 git remote rm non-existant-remote Brian Gernhardt
@ 2009-06-28 16:11 ` Jeff King
2009-06-28 23:04 ` Brian Gernhardt
0 siblings, 1 reply; 4+ messages in thread
From: Jeff King @ 2009-06-28 16:11 UTC (permalink / raw)
To: Brian Gernhardt; +Cc: Git List
On Sun, Jun 28, 2009 at 10:47:23AM -0400, Brian Gernhardt wrote:
> I was working on updating the remotes for one of my repositories
> (adding a variety of forks) and renamed the origin branch. When I
> was done, I tried to use "git remote rm origin" to remove the
> branches for the now dead origin. What git-remote did was remove all
> of my remotes and the merge information for my master branch (which
> was moved off the origin remote).
>
> This is a data loss bug. Very bad. `git remote rm` should either
> refuse to remove a non-existent remote or (preferably) simply remove
> any branches that exist for that remote.
Ouch. That is indeed a serious bug. However, I can't reproduce with
current 'next'; which version of git are you using?
> When time allows I'll look into fixing this, but I thought I'd post
> in case somebody had more tuits than me this week.
I think it would be nice to have it delete partial cruft left over, but
I suspect just changing it to refuse the deletion will be a one-liner.
It would be nice to get at least that out to 'maint' branches as
appropriate.
-Peff
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git remote rm non-existant-remote
2009-06-28 16:11 ` Jeff King
@ 2009-06-28 23:04 ` Brian Gernhardt
2009-06-29 16:38 ` Jeff King
0 siblings, 1 reply; 4+ messages in thread
From: Brian Gernhardt @ 2009-06-28 23:04 UTC (permalink / raw)
To: Jeff King; +Cc: Git List
On Jun 28, 2009, at 12:11 PM, Jeff King wrote:
> On Sun, Jun 28, 2009 at 10:47:23AM -0400, Brian Gernhardt wrote:
>
>> I was working on updating the remotes for one of my repositories
>> (adding a variety of forks) and renamed the origin branch. When I
>> was done, I tried to use "git remote rm origin" to remove the
>> branches for the now dead origin. What git-remote did was remove all
>> of my remotes and the merge information for my master branch (which
>> was moved off the origin remote).
>>
>> This is a data loss bug. Very bad. `git remote rm` should either
>> refuse to remove a non-existent remote or (preferably) simply remove
>> any branches that exist for that remote.
>
> Ouch. That is indeed a serious bug. However, I can't reproduce with
> current 'next'; which version of git are you using?
git version 1.6.3.3.467.g98a79
I believe that's the latest "next".
~~ Brian
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git remote rm non-existant-remote
2009-06-28 23:04 ` Brian Gernhardt
@ 2009-06-29 16:38 ` Jeff King
0 siblings, 0 replies; 4+ messages in thread
From: Jeff King @ 2009-06-29 16:38 UTC (permalink / raw)
To: Brian Gernhardt; +Cc: Git List
On Sun, Jun 28, 2009 at 07:04:17PM -0400, Brian Gernhardt wrote:
> >Ouch. That is indeed a serious bug. However, I can't reproduce with
> >current 'next'; which version of git are you using?
>
> git version 1.6.3.3.467.g98a79
>
> I believe that's the latest "next".
OK, then it is not a version problem, but rather I am doing something
different to try to reproduce it. Can you post a short set of commands
to show the problem?
-Peff
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-06-29 16:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-28 14:47 git remote rm non-existant-remote Brian Gernhardt
2009-06-28 16:11 ` Jeff King
2009-06-28 23:04 ` Brian Gernhardt
2009-06-29 16:38 ` Jeff King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).