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

Re: Fatal errors on git rm (Operation not permitted)

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 23, 2009, 18:33 UTC
Message-ID
<7v8wctr159.fsf@alter.siamese.dyndns.org>
In-Reply-To
<m2oclp36zl.wl%xiaolong.snake@gmail.com>
Xiaolong Tang <xiaolong.snake@gmail.com> writes:
Show 6 quoted lines
> 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.

Previous: Xiaolong Tang
Message 2 of 2 in “Fatal errors on git rm (Operation not permitted)”
  1. Xiaolong TangDec 23, 2009
  2. Junio C HamanoDec 23, 2009

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.