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

Re: aliases causing “Permission denied” error in git v1.7

From
АДАлексей Данченков <adanchenkov@gmail.com>
Date
Nov 5, 2011, 11:51 UTC
Message-ID
<CALUFZ3mgR8aRGO2yCfxKvHXqmz4ZOXBNSPuq0Q69yZ7ys5ttzQ@mail.gmail.com>
In-Reply-To
<7vhb2jbopp.fsf@alter.siamese.dyndns.org>
Thank you very much, Jeff and Junio!

Not only I discovered more than one directory mentioned in the $PATH, but missing, but also learned a lot, including the strace tool.

Cheers, Alexei
2011/11/5 Junio C Hamano <gitster@pobox.com>:
Show 15 quoted lines
> Jeff King <peff@peff.net> writes:
>
> I do not know why my response is not showing up in the list archive, but
> the complaint was that "git co" works for him and "sudo git co" does not.
>
> I suspect that Alexsey will see differences between these:
>
>    $ sh -c 'echo $PATH $HOME'
>    $ sudo sh -c 'echo $PATH $HOME'
>
> Most likely, the latter would say /root/bin and /root; if an element in
> the $PATH is unreadable, git would say "cannot exec 'git-co': Permission denied".
>
>
>
Previous: Jeff King
Message 3 of 3 in “aliases causing “Permission denied” error in git v1.7”
  1. Алексей ДанченковNov 4, 2011
  2. Jeff KingNov 4, 2011
  3. Алексей ДанченковNov 5, 2011

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.