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

[BUG] git-mv submodule failure

From
Yin Ping <pkufranky@gmail.com>
Date
Oct 20, 2007, 06:01 UTC
Message-ID
<46dff0320710192301p3e1d88d5l3b662b72b051d920@mail.gmail.com>
project
  .git
  file1
  submoudle
     .git
      file2

$ cd project $ git-mv submodule submodule1 fatal: source directory is empty, source=submodule, destination=submodule1

However, the following is ok and rename is automatically detected $ cd project $ mv submodule submodule1 $ git-add submodule1 $ git-commit -a

which gives in vim: # Please enter the commit message for your changes. # (Comment lines starting with '#' will not be included) # On branch master # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # renamed: submodule -> submodule1 #

-- 
franky
Next: Johannes Schindelin
Message 1 of 5 in “[BUG] git-mv submodule failure”
  1. Yin PingOct 20, 2007
  2. Johannes SchindelinOct 20, 2007
  3. Yin PingOct 21, 2007
  4. Johannes SchindelinOct 21, 2007
  5. Yin PingOct 22, 2007

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.