Fix behaviour if you have a branch named the same as your --prefix
authorAvery Pennarun <apenwarr@gmail.com>
Wed, 26 Aug 2009 14:43:43 +0000 (10:43 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Wed, 26 Aug 2009 14:45:13 +0000 (10:45 -0400)
We were trying to 'git checkout $prefix', which is ambiguous if $prefix
names a directory *and* a branch. Do 'git checkout -- $prefix' instead.

The main place this appeared was in 'git subtree add'.

Reported by several people.

No differences found