fschulze/mr.developer — Issue #65: Strange behavior when updating a git package with branch option
Author: vincentfretin
Created: 2011-10-26 16:06:05+00:00
State: open

With the following buildout.cfg

```
[buildout]
parts =
newest = true
extensions =
buildout.dumppickedversions
mr.developer
versions = versions
always-checkout = force
auto-checkout = plone.app.layout

[versions]
zc.buildout = 1.5.2
zc.recipe.egg = 1.3.2
distribute = 0.6.24
mr.developer = 1.19
elementtree = 1.2.7-20070827-preview
distribute = 0.6.24

[sources]
plone.app.layout = git git://github.com/plone/plone.app.layout.git branch=2.1
```

The first time you run bin/buildout it will clone the branch 2.1, ok.
If you run it a second time, it will update the checkout by executing git checkout 2.1, and it seems you get the 2.1 tag, not the branch 2.1, so you lose all the changes after the 2.1 release.