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

RE: Trouble Cloning Git remote repository

From
FPFred's Personal <freddiewik@optonline.net>
Date
Feb 28, 2016, 17:48 UTC
Message-ID
<00e001d17250$47c63fe0$d752bfa0$@optonline.net>
In-Reply-To
<CACsJy8A5539X+VhUAnNfn5Q_uW1pa5oYb9YAAF8=u3XfdhAeMw@mail.gmail.com>
Duy,
Thanks for advice, here is the result of executing the lines you suggested:

user1@Host1 MINGW64 ~/gitrepository (master) $ export GIT_TRACE=1

user1@Host1 MINGW64 ~/gitrepository (master) $ git clone -v ssh://user1@Host2/srv/centralrepo 12:33:47.928365 git.c:348 trace: built-in: git 'clone' '-v' 'ssh://user1@Host2/srv/centralrepo' Cloning into 'centralrepo'... 12:33:48.022110 run-command.c:343 trace: run_command: 'C:\Program Files (x86)\PuTTY\plink.exe' 'user1@Host2' 'git-upload-pack '\''/srv/centralrepo'\'''

##>>>Lines from $HOME/.bashrc (See below, removed here for clarity)
+ user1@Host2 git-upload-pack /srv/centralrepo
bash: user1@Host2: command not found
fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

Regards, Fred

freddiewik@optonline.net
-----Original Message-----
From: Duy Nguyen [mailto:pclouds@gmail.com] 
Sent: Saturday, February 27, 2016 4:36 AM
To: Fred's Personal
Cc: Git Mailing List
Subject: Re: Trouble Cloning Git remote repository
On Sat, Feb 27, 2016 at 6:03 AM, Fred's Personal <freddiewik@optonline.net> wrote:
Show 23 quoted lines
> $ git clone -v ssh://user1@Host2/srv/centralrepo Cloning into 
> 'centralrepo'...
>>>>Lines from $HOME/.bashrc
>   + export
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr
> /games
> :/usr/local/games
>   +
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr
> /games
> :/usr/local/games
>   + PROMPT_COMMAND=
>   + CDPATH=
>   + '[' '' = yes ']'
>   + PS1='${debian_chroot:+($debian_chroot)}\u:\W\$ '
>   + export GIT_TRACE_PACKET=1
>   + GIT_TRACE_PACKET=1
>   + export GIT_TRACE=1
>   + GIT_TRACE=1
>>>>End of Lines from $HOME/.bashrc
> ## WHERE DOES The following line COME FROM????What Script spits out 
> this line????
>   + user1@Host2 git-upload-pack /srv/centralrepo
Try set GIT_TRACE=1 at the clone line, I have a feeling that this line should be "ssh user@Host2..." but "ssh" is missing.

$ export GIT_TRACE=1 $ git clone -v ssh://user1@Host2/srv/centralrepo -- Duy

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2016.0.7442 / Virus Database: 4537/11702 - Release Date: 02/26/16
Previous: Duy NguyenNext: Duy Nguyen
Message 3 of 7 in “Trouble Cloning Git remote repository”
  1. Fred's PersonalFeb 26, 2016
  2. Duy NguyenFeb 27, 2016
  3. Fred's PersonalFeb 28, 2016
  4. Duy NguyenFeb 29, 2016
  5. John KeepingFeb 29, 2016
  6. Fred's PersonalMar 1, 2016
  7. 'John Keeping'Mar 1, 2016

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.