git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-mv is broken in master
@ 2006-08-15 20:51 Fredrik Kuivinen
  2006-08-15 21:02 ` David Rientjes
  0 siblings, 1 reply; 7+ messages in thread
From: Fredrik Kuivinen @ 2006-08-15 20:51 UTC (permalink / raw)
  To: git

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-renamed

Which 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-08-16 19:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-15 20:51 git-mv is broken in master Fredrik Kuivinen
2006-08-15 21:02 ` David Rientjes
2006-08-16  0:20   ` [PATCH] git-mv: succeed even if source is a prefix of destination Johannes Schindelin
2006-08-16  5:49     ` Fredrik Kuivinen
2006-08-16  6:34       ` Johannes Schindelin
2006-08-16  8:44       ` Johannes Schindelin
2006-08-16 19:22         ` Fredrik Kuivinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).