{"thread":{"id":"10386","subject":"[BUG] git-mv submodule failure","startedAt":"2007-10-20T06:01:31Z","lastAt":"2007-10-22T11:46:25Z","messageCount":5,"participants":["Yin Ping","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"56658","messageId":"46dff0320710192301p3e1d88d5l3b662b72b051d920@mail.gmail.com","threadId":"10386","inReplyTo":null,"subject":"[BUG] git-mv submodule failure","fromName":"Yin Ping","fromEmail":"pkufranky@gmail.com","sentAt":"2007-10-20T06:01:31Z","receivedAt":"2007-10-20T06:01:31Z","isPatch":false,"sender":{"key":"pkufranky@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5346?v=4"},"body":"project\n  .git\n  file1\n  submoudle\n     .git\n      file2\n\n$ cd project\n$ git-mv submodule submodule1\nfatal: source directory is empty, source=submodule, destination=submodule1\n\nHowever, the following is ok and rename is automatically detected\n$ cd project\n$ mv submodule submodule1\n$ git-add submodule1\n$ git-commit -a\n\nwhich gives in vim:\n# Please enter the commit message for your changes.\n# (Comment lines starting with '#' will not be included)\n# On branch master\n# Changes to be committed:\n#   (use \"git reset HEAD <file>...\" to unstage)\n#\n#   renamed:    submodule -> submodule1\n#\n\n-- \nfranky\n"},{"id":"56736","messageId":"Pine.LNX.4.64.0710202223590.25221@racer.site","threadId":"10386","inReplyTo":"46dff0320710192301p3e1d88d5l3b662b72b051d920@mail.gmail.com","subject":"Re: [BUG] git-mv submodule failure","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-10-20T21:24:25Z","receivedAt":"2007-10-20T21:24:25Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Sat, 20 Oct 2007, Yin Ping wrote:\n\n> project\n>   .git\n>   file1\n>   submoudle\n>      .git\n>       file2\n> \n> $ cd project\n> $ git-mv submodule submodule1\n> fatal: source directory is empty, source=submodule, destination=submodule1\n> \n> However, the following is ok and rename is automatically detected\n> $ cd project\n> $ mv submodule submodule1\n> $ git-add submodule1\n> $ git-commit -a\n> \n> which gives in vim:\n> # Please enter the commit message for your changes.\n> # (Comment lines starting with '#' will not be included)\n> # On branch master\n> # Changes to be committed:\n> #   (use \"git reset HEAD <file>...\" to unstage)\n> #\n> #   renamed:    submodule -> submodule1\n> #\n\nBut of course .gitmodules is unaffected.  But it should be changed, too.\n\nCiao,\nDscho\n"},{"id":"56749","messageId":"46dff0320710202248v56af5cb0gcf7dacb32848eca3@mail.gmail.com","threadId":"10386","inReplyTo":"Pine.LNX.4.64.0710202223590.25221@racer.site","subject":"Re: [BUG] git-mv submodule failure","fromName":"Yin Ping","fromEmail":"pkufranky@gmail.com","sentAt":"2007-10-21T05:48:41Z","receivedAt":"2007-10-21T05:48:41Z","isPatch":false,"sender":{"key":"pkufranky@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5346?v=4"},"body":">\n> But of course .gitmodules is unaffected.  But it should be changed, too.\n>\n\nIMHO, changing .gitmodules is what the 'git-submodule mv' should do,\nand 'git-mv' should only rename the module directory\n\n> Ciao,\n> Dscho\n>\n>\n\n\n-- \nfranky\n"},{"id":"56763","messageId":"Pine.LNX.4.64.0710211102230.25221@racer.site","threadId":"10386","inReplyTo":"46dff0320710202248v56af5cb0gcf7dacb32848eca3@mail.gmail.com","subject":"Re: [BUG] git-mv submodule failure","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-10-21T10:02:54Z","receivedAt":"2007-10-21T10:02:54Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Sun, 21 Oct 2007, Yin Ping wrote:\n\n> > But of course .gitmodules is unaffected.  But it should be changed, too.\n> \n> IMHO, changing .gitmodules is what the 'git-submodule mv' should do, and \n> 'git-mv' should only rename the module directory\n\nNo.  If you \"git mv\" a submodule, it makes absolutely no sense to leave \n.gitmodules as is.\n\nCiao,\nDscho\n"},{"id":"56863","messageId":"46dff0320710220446r51a17b34oa0f5c0043cd1076d@mail.gmail.com","threadId":"10386","inReplyTo":"Pine.LNX.4.64.0710211102230.25221@racer.site","subject":"Re: [BUG] git-mv submodule failure","fromName":"Yin Ping","fromEmail":"pkufranky@gmail.com","sentAt":"2007-10-22T11:46:25Z","receivedAt":"2007-10-22T11:46:25Z","isPatch":false,"sender":{"key":"pkufranky@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5346?v=4"},"body":"On 10/21/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n\n> No.  If you \"git mv\" a submodule, it makes absolutely no sense to leave\n> .gitmodules as is.\n>\n I can modify the .gitmodule manually since git-submodule mv is not\navailable. Anyway, I just want a command to rename a submodule easily,\nnot \"mv && git-rm && git-add\".\n>\n\n\n-- \nfranky\n"}]}