git-mv is broken in master
- From
Fredrik Kuivinen <freku045@student.liu.se>
- Date
- Aug 15, 2006, 20:51 UTC
- Message-ID
- <20060815205150.GA467@c165.ib.student.liu.se>
Hi,
With the current master I get the following:
$ git-mv README README-renamed
fatal: can not move directory into itself, source=README, destination=README-renamedWhich is buggy. The culprit seems to be the test
if (!bad &&
!strncmp(destination[i], source[i], strlen(source[i])))
bad = "can not move directory into itself";at line ~207 in builtin-mv.c.
If the source isn't a prefix of the destination things works as expected,
$ git mv README renamed-README
$- Fredrik