guberm / tortoisegit

Automatically exported from code.google.com/p/tortoisegit
0 stars 0 forks source link

Removing a remote does not delete local branches #2512

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Click Settings, remote, right click a remote -> Remove
2. Note that the local branches are not removed from any dialog (fetch, log, 
branches etc)

What is the expected output? What do you see instead?

The old remotes branches and existence should be removed.

What version of TortoiseGit and msysgit are you using? On
what operating system?

1.8.12

Please provide any additional information below.

Original issue reported on code.google.com by mik...@gmail.com on 28 May 2015 at 10:54

GoogleCodeExporter commented 9 years ago
Please try 1.8.14.0. Thank you. :)

When you say "local branches" in your step 2 or "remotes branches", are they 
remote-tracking branch ("origin/xxx")?

Original comment by yuelinho...@gmail.com on 28 May 2015 at 11:43

GoogleCodeExporter commented 9 years ago
Is this already fixed in 1.8.14?

Let me explain it better. You remove a remote. Go to .git/refs/remotes/. The 
remotes are still there.

Original comment by mik...@gmail.com on 28 May 2015 at 11:50

GoogleCodeExporter commented 9 years ago
Rename remote only differ in case?

Besides checking.git/refs/remotes/,
please also check .git/packed-refs

Original comment by ch3co...@gmail.com on 28 May 2015 at 11:57

GoogleCodeExporter commented 9 years ago
Yes, there is a problem with case. I remember logging a bug about case handling 
in remote names a few years ago, but I don't think we found it or solved it.

From a quick look:

lowercase remotes are successfully removed from .git/packed-refs, but stay in 
.git/refs/remotes. 

UPPERCASE or CamelCase remotes are not removed from packed refs or remotes.

Original comment by mik...@gmail.com on 28 May 2015 at 12:26

GoogleCodeExporter commented 9 years ago
My old bug is here, possibly related

https://code.google.com/p/tortoisegit/issues/detail?id=1699&can=1&q=reporter%3Am
ikkey%40gmail.com&colspec=ID%20Type%20Status%20Priority%20Stars%20Owner%20Summar
y

Original comment by mik...@gmail.com on 28 May 2015 at 12:30

GoogleCodeExporter commented 9 years ago
This is a msysgit problem.

ATM, You may edit .git/packed-refs to delete the problematic refs.

Original comment by ch3co...@gmail.com on 29 May 2015 at 12:05

GoogleCodeExporter commented 9 years ago

Original comment by sstrickr...@googlemail.com on 19 Jun 2015 at 12:21