All of lore.kernel.org
 help / color / mirror / Atom feed
From: Xiaolong Tang <xiaolong.snake@gmail.com>
To: git@vger.kernel.org
Subject: Fatal errors on git rm (Operation not permitted)
Date: Wed, 23 Dec 2009 12:01:02 -0600	[thread overview]
Message-ID: <m2oclp36zl.wl%xiaolong.snake@gmail.com> (raw)

Hi all, 

I am running into a trouble with git commands. 

I have a repository in my laptop to keep all system settings. 
Specifically, the repository is illustrated as below:
 
reproot/
.git
.gitignore 
`-- lib
    `-- emacs
        `-- lisp
            |-- dictionary
            ...
            |-- git-emacs 
            |   |-- ...
            |   |-- ...
            |   |-- ...
            .. 
            |-- remember  

To ease the updating of these third-party Emacs packages (e.g. dictionary, git-emacs, remember and so on), I prefer to get them via version control commands. 
For example, git-emacs is created via this command:
git://github.com/tsgates/git-emacs 

This strategy seems to work well when I include (within my laptop repository) those packages which are not managed via git. 
On the contrary, the trouble arises from including another git repository.

For example, when I try to clone my laptop repository into my desktop, the package "git-emacs" only shows up as an empty directory in the newly repository. 

Then when I go back to my laptop repository, there is nothing I can do.
Finally, I decide to remove this package from my laptop repository, but end up with the following errors:

git rm -rf git-emacs
rm 'lib/emacs/lisp/git-emacs'
fatal: git rm: 'lib/emacs/lisp/git-emacs': Operation not permitted

The similar errors happen with removing remember(another package under git) too.
11:53:37->git rm -rf remember
rm 'lib/emacs/lisp/remember'
fatal: git rm: 'lib/emacs/lisp/remember': Operation not permitted

So, below are my questions:
What is the real cause of such kind of problem?
How could I fix it?

PS: I did not use git submodule command.

Thanks!
Xiaolong

             reply	other threads:[~2009-12-23 18:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-23 18:01 Xiaolong Tang [this message]
2009-12-23 18:33 ` Fatal errors on git rm (Operation not permitted) Junio C Hamano
  -- strict thread matches above, loose matches on Subject: below --
2009-12-23 17:58 Xiaolong Tang

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=m2oclp36zl.wl%xiaolong.snake@gmail.com \
    --to=xiaolong.snake@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.