git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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-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
Next: David Rientjes
Message 1 of 7 in “git-mv is broken in master”
  1. Fredrik KuivinenAug 15, 2006
  2. David RientjesAug 15, 2006
  3. git-mv: succeed even if source is a prefix of destinationJohannes Schindelin, Aug 16, 2006
  4. Fredrik KuivinenAug 16, 2006
  5. Johannes SchindelinAug 16, 2006
  6. Johannes SchindelinAug 16, 2006
  7. Fredrik KuivinenAug 16, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.