git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Yin Ping" <pkufranky@gmail.com>
To: git@vger.kernel.org
Subject: [BUG] git-mv submodule failure
Date: Sat, 20 Oct 2007 14:01:31 +0800	[thread overview]
Message-ID: <46dff0320710192301p3e1d88d5l3b662b72b051d920@mail.gmail.com> (raw)

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

             reply	other threads:[~2007-10-20  6:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-20  6:01 Yin Ping [this message]
2007-10-20 21:24 ` [BUG] git-mv submodule failure Johannes Schindelin
2007-10-21  5:48   ` Yin Ping
2007-10-21 10:02     ` Johannes Schindelin
2007-10-22 11:46       ` Yin Ping

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46dff0320710192301p3e1d88d5l3b662b72b051d920@mail.gmail.com \
    --to=pkufranky@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).