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

Re: clone fails: Could not get the current working directory

From
JFJohn Freeman <jfreeman@cs.tamu.edu>
Date
Sep 21, 2008, 22:18 UTC
Message-ID
<48D6C822.7050602@cs.tamu.edu>
In-Reply-To
<d3a045300809211012l35b1ec2dq39f4174170d8c926@mail.gmail.com>
Paul Johnston wrote:
> On the server, where is git installed? I had a similar problem with
> clone when my git installation was not in a PATH known to ssh. 

It is installed in a non-standard directory, /opt/csg/bin. This is part of the system-wide PATH defined in /etc/bashrc. I also added it to my ~/.bashrc before I discovered that fact.

> Try
> creating symlinks from usr/bin (for example) to your git executables
> to see if this solves the problem.

I did create symlinks in $HOME/local/bin which is in the PATH defined in my ~/.bashrc. I do not have administrator privileges, so I cannot put symlinks in /usr/bin. I think it is finding the executable just fine, but that there is some issue with accessing the repo directory. I have tested with

 > ssh user@remote.system.edu -- "git-upload-pack"
and it works as expected.
>   Also, search the archives for
> git-upload-pack.
>   

I've skimmed it, and I see nothing related to my problem. Specifying --upload-pack explicitly gives the same error.

Thank you for the response, though.  Are there any other ideas?
- John
Previous: Alex RiesenNext: John Freeman
Message 11 of 12 in “clone fails: Could not get the current working directory”
  1. John FreemanSep 21, 2008
  2. Alex RiesenSep 23, 2008
  3. John FreemanSep 23, 2008
  4. Alex RiesenSep 23, 2008
  5. John FreemanSep 23, 2008
  6. Alex RiesenSep 23, 2008
  7. John FreemanSep 23, 2008
  8. Alex RiesenSep 24, 2008
  9. John FreemanSep 24, 2008
  10. Alex RiesenSep 24, 2008
  11. John FreemanSep 21, 2008
  12. John FreemanSep 22, 2008

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.