git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fatal errors on git rm (Operation not permitted)
@ 2009-12-23 17:58 Xiaolong Tang
  0 siblings, 0 replies; 3+ messages in thread
From: Xiaolong Tang @ 2009-12-23 17:58 UTC (permalink / raw)
  To: git

Hi all, 

I am running into a trouble with git commands. 

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

To ease the updating of these third-party eamcs packages (e.g. dictionary, git-emacs, remember and so on), I perfer 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 remvoing 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Fatal errors on git rm (Operation not permitted)
@ 2009-12-23 18:01 Xiaolong Tang
  2009-12-23 18:33 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Xiaolong Tang @ 2009-12-23 18:01 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Fatal errors on git rm (Operation not permitted)
  2009-12-23 18:01 Xiaolong Tang
@ 2009-12-23 18:33 ` Junio C Hamano
  0 siblings, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2009-12-23 18:33 UTC (permalink / raw)
  To: Xiaolong Tang; +Cc: git

Xiaolong Tang <xiaolong.snake@gmail.com> writes:

> 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

We don't say "Operation not permitted" ourselves; it is coming from your C
library's strerror(3) when we got EPERM error back.  The reason you get
EPERM can vary depending on your platform and what you did to your
directories yourself, but googling for "Operation not permitted" and
randomly reading a few might give you hints.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-12-23 18:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-23 17:58 Fatal errors on git rm (Operation not permitted) Xiaolong Tang
  -- strict thread matches above, loose matches on Subject: below --
2009-12-23 18:01 Xiaolong Tang
2009-12-23 18:33 ` Junio C Hamano

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).