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

Re: git pull works remotely but not locally

From
IUIvan Uemlianin <ivan@llaisdy.com>
Date
May 27, 2010, 16:21 UTC
Message-ID
<4BFE9C1E.7050308@llaisdy.com>
In-Reply-To
<20100527153812.GA23484@coredump.intra.peff.net>
On 27/05/2010 16:38, Jeff King wrote:
> Then the next thing to try is probably (assuming you are running Linux):
>    

Well, kind of: it's CentOS, which I'm finding quite recalcitrant (e.g. I had to install strace).

Show 9 quoted lines
>    strace -f -e execve git pull
>
> Though I suspect we may just see:
>
>    execve("/opt/libexec/git-core/git-core/git-pull", ...) = -1 EACCES (Permission denied)
>
> which doesn't help much. I just want to be sure that is the source of
> the problem.
>    

No, the output is interesting. The permissions denied is from the erroneous /root install (see separate email):

     [pid  3485] execve("/root/libexec/git-core/git-pull", ["git-pull"], 
[/* 18 vars */]) = -1 EACCES (Permission denied)
It looks in /opt/bin, but not /opt/libexec.

It could be a botched git install or it could be a botched PATH --- I have had to fiddle about with it a bit. For example, /opt/libexec is not on my PATH ... In fact my PATH *is* botched:

     $ $PATH
     bash: /opt/bin:<snip/>:/usr/bin:/root/bin: No such file or directory
Those last two items don't look good at all.  And:
     $ PATH=/opt/libexec/git-core/:$PATH
     $ git pull
     remote: Counting objects: 8, done.
     ...
      1 files changed, 2 insertions(+), 1 deletions(-)
Working!
So:
- git itself is probably OK
- I have a botched PATH, which I should fix asap

Does git expect certain paths to be on a user's PATH? If so perhaps that is all that is wrong.

Best wishes
Ivan
-- 
============================================================
Ivan A. Uemlianin
Speech Technology Research and Development

                     ivan@llaisdy.com
                      www.llaisdy.com
                          llaisdy.wordpress.com
                      www.linkedin.com/in/ivanuemlianin

     "Froh, froh! Wie seine Sonnen, seine Sonnen fliegen"
                      (Schiller, Beethoven)
============================================================
Previous: Jeff KingNext: Ilari Liusvaara
Message 11 of 17 in “git pull works remotely but not locally”
  1. Ivan UemlianinMay 27, 2010
  2. Ramkumar RamachandraMay 27, 2010
  3. Ivan UemlianinMay 27, 2010
  4. Sverre RabbelierMay 27, 2010
  5. Ivan UemlianinMay 27, 2010
  6. Jeff KingMay 27, 2010
  7. Ivan UemlianinMay 27, 2010
  8. Johannes SixtMay 27, 2010
  9. Ivan UemlianinMay 27, 2010
  10. Jeff KingMay 27, 2010
  11. Ivan UemlianinMay 27, 2010
  12. Ilari LiusvaaraMay 27, 2010
  13. Ramkumar RamachandraMay 27, 2010
  14. Ivan UemlianinMay 27, 2010
  15. Johannes SixtMay 27, 2010
  16. Ivan UemlianinMay 28, 2010
  17. Ramkumar RamachandraMay 27, 2010

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.