remote/clone bug: Stale tracking branch HEAD
- From
- Teemu Likonen <tlikonen@iki.fi>
- Date
- Mar 16, 2008, 17:21 UTC
- Message-ID
- <200803161921.49274.tlikonen@iki.fi>
- In-Reply-To
- <7v1w6bj7f9.fsf_-_@gitster.siamese.dyndns.org>
Junio C Hamano kirjoitti:
> We are going into 1.5.5-rc feature freeze tonight, and squashing > these bugs now are of the highest priority. Please keep the bug > reports and fixes flowing.
I hope this bug won't find it's way to the release:
http://article.gmane.org/gmane.comp.version-control.git/77188
In short: After 'git clone' the command 'git remote show origin' shows a stale tracking branch HEAD:
Stale tracking branch (use 'git remote prune')
HEAD'git remote prune origin' removes branch 'master'; you can see this with "git remote show origin":
New remote branch (next fetch will store in remotes/origin)
master'git fetch' fetches 'master' again but the stale tracking branch HEAD appears again.