* Trouble Cloning Git remote repository @ 2016-02-26 23:03 Fred's Personal 2016-02-27 9:35 ` Duy Nguyen 0 siblings, 1 reply; 7+ messages in thread From: Fred's Personal @ 2016-02-26 23:03 UTC (permalink / raw) To: git I am trying to set up a remote Git repository on my network server. I want to develop source on several desktops / laptops and want to have a central repository to sync everything and maintain version control. Seems like a good fit for Git, but I cannot get it to work and would appreciate advice on fixing the configuration or how to troubleshoot to identify the root cause. Please let me know what additional info you need to assist. I have listed the machine configurations and the Git Bash lines from attempting the git clone. Configuration: Local Machine (Host1) o Windows 10 - Git for Windows 2.7.1.2-64bit update o Git Repository = ~HOME/gitrepository Remote Machine (Host2) o Ubuntu Server 14.04 LTS; Git version 2.7.2 o Git repository = /srv/centralrepo.git ;created with -bare -shared o Owner= user1; group= developer o Created ~/.bashrc to ensure PATH is set correctly with 'interactive non-login' session o After .bashrc runs there is a line from a bash script that causes a bash error: "bash: user1@Host2: command not found" Clone to the remote repository always fails with: 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. All command line text shown here is executed from Local Machine(Host1) (from Windows Git Bash) My comments preceded with ## ## First cd into local repository and check status; user1@Host1 MINGW64 ~ $ cd $HOME/gitrepository user1@Host1 MINGW64 ~/gitrepository (master) $ git status On branch master nothing to commit, working directory clean ## Now try to clone remote repository on Host2 (added set -x to ~/.bashrc script) user1@Host1 MINGW64 ~/gitrepository (master) $ 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 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. ## Check remote path for interactive non-login session user1@Host1 MINGW64 ~/gitrepository (master) $ ssh user1@Host2 echo \$PATH Enter passphrase for key '/c/Users/user1/.ssh/id_rsa': ## >>>Lines from $HOME/.bashrc (See Above, removed here for clarity) ## PATH looks okay + echo /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr /local/games /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr /local/games ## List remote Git respository to check permissions user1@Host1 MINGW64 ~/gitrepository (master) $ ssh user1@Host2 ls -al /srv/centralrepo.git Enter passphrase for key '/c/Users/user1/.ssh/id_rsa': ## >>>Lines from $HOME/.bashrc (See Above, removed here for clarity) ## CHECK the permissions and owner of the remote git repository + ls -al /srv/centralrepo.git total 44 drwxrwsrwx 7 user1 developer 4096 Feb 11 21:02 . drwxrwxrwx 4 user1 developer 4096 Feb 2 08:15 .. drwxrwsrwx 2 user1 developer 4096 Feb 2 08:16 branches -rwxrwxrwx 1 user1 developer 224 Feb 4 18:09 config -rwxrwxrwx 1 user1 developer 26 Feb 11 21:02 description -rwxrwxrwx 1 user1 developer 23 Feb 2 08:16 HEAD drwxrwsrwx 2 user1 developer 4096 Feb 2 08:16 hooks drwxrwsrwx 2 user1 developer 4096 Feb 2 08:16 info drwxrwsrwx 4 user1 developer 4096 Feb 2 08:16 objects drwxrwsrwx 4 user1 developer 4096 Feb 2 08:16 refs -rw-rw-r-- 1 user1 developer 52 Feb 11 19:37 sample.txt ## Try cloning with -u option and path to upload-pack user1@Host1 MINGW64 ~/gitrepository (master) $ git clone -u /usr/bin/git-upload-pack ssh://user1@Host2/srv/centralrepo Cloning into 'centralrepo'... ## >>>Lines from $HOME/.bashrc (See Above, removed here for clarity) ## ***** POSIX directory translation messed up this path + user1@Host2 C:/Program Files/Git/usr/bin/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. ## List the remote repository config user1@Host1 MINGW64 ~/gitrepository (master) $ ssh user1@Host2 cat /srv/centralrepo.git/config Enter passphrase for key '/c/Users/user1/.ssh/id_rsa': ## >>>Lines from $HOME/.bashrc (See Above, removed here for clarity) + cat /srv/centralrepo.git/config [core] repositoryformatversion = 0 filemode = true bare = true sharedrepository = 1 [receive] denyNonFastforwards = true [remote "origin"] uploadpack = /usr/bin/git-upload-pack receivepack = /usr/bin/git-receive-pack ## List Git version user1@Host1 MINGW64 ~/gitrepository (master) $ ssh user1@Host2 git --version Enter passphrase for key '/c/Users/phreddyw/.ssh/id_rsa': ## >>>Lines from $HOME/.bashrc (See Above, removed here for clarity) + git --version trace: built-in: git 'version' git version 2.7.2 Regards, Fred ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Trouble Cloning Git remote repository 2016-02-26 23:03 Trouble Cloning Git remote repository Fred's Personal @ 2016-02-27 9:35 ` Duy Nguyen 2016-02-28 17:48 ` Fred's Personal 0 siblings, 1 reply; 7+ messages in thread From: Duy Nguyen @ 2016-02-27 9:35 UTC (permalink / raw) To: Fred's Personal; +Cc: Git Mailing List On Sat, Feb 27, 2016 at 6:03 AM, Fred's Personal <freddiewik@optonline.net> wrote: > $ 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Trouble Cloning Git remote repository 2016-02-27 9:35 ` Duy Nguyen @ 2016-02-28 17:48 ` Fred's Personal 2016-02-29 1:20 ` Duy Nguyen 0 siblings, 1 reply; 7+ messages in thread From: Fred's Personal @ 2016-02-28 17:48 UTC (permalink / raw) To: 'Duy Nguyen'; +Cc: 'Git Mailing List' 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: > $ 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Trouble Cloning Git remote repository 2016-02-28 17:48 ` Fred's Personal @ 2016-02-29 1:20 ` Duy Nguyen 2016-02-29 9:34 ` John Keeping 0 siblings, 1 reply; 7+ messages in thread From: Duy Nguyen @ 2016-02-29 1:20 UTC (permalink / raw) To: Fred's Personal; +Cc: Git Mailing List On Mon, Feb 29, 2016 at 12:48 AM, Fred's Personal <freddiewik@optonline.net> wrote: > 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'\''' This command looks good to me. So I have no clue what goes wrong :-) Maybe you can execute this command directly, with more plink debugging options or something. You don't have to run git-upload-pack. Just spawn a shell. Another option is try something other than plink (does git-for-windows come with ssh.exe?) > > ##>>>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: >> $ 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 > > -- Duy ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Trouble Cloning Git remote repository 2016-02-29 1:20 ` Duy Nguyen @ 2016-02-29 9:34 ` John Keeping 2016-03-01 15:04 ` Fred's Personal 0 siblings, 1 reply; 7+ messages in thread From: John Keeping @ 2016-02-29 9:34 UTC (permalink / raw) To: Duy Nguyen; +Cc: Fred's Personal, Git Mailing List On Mon, Feb 29, 2016 at 08:20:46AM +0700, Duy Nguyen wrote: > On Mon, Feb 29, 2016 at 12:48 AM, Fred's Personal > <freddiewik@optonline.net> wrote: > > 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'\''' > > This command looks good to me. So I have no clue what goes wrong :-) > Maybe you can execute this command directly, with more plink debugging > options or something. You don't have to run git-upload-pack. Just > spawn a shell. Another option is try something other than plink (does > git-for-windows come with ssh.exe?) On Windows it's probably going through mingw_spawnve_fd() which reassembles a quoted command line from the individual arguments. It would be interesting to see what gets passed to CreateProcessW(). > > ##>>>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: > >> $ 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 > > > > > > > > -- > Duy > -- > To unsubscribe from this list: send the line "unsubscribe git" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Trouble Cloning Git remote repository 2016-02-29 9:34 ` John Keeping @ 2016-03-01 15:04 ` Fred's Personal 2016-03-01 15:28 ` 'John Keeping' 0 siblings, 1 reply; 7+ messages in thread From: Fred's Personal @ 2016-03-01 15:04 UTC (permalink / raw) To: 'John Keeping', 'Duy Nguyen'; +Cc: 'Git Mailing List' John, Thanks for the insight, it's been a while since I debugged a Windows call stack. Can you give me commands to view what gets passed to CreateProcessW(). Regards, Fred freddiewik@optonline.net -----Original Message----- From: John Keeping [mailto:john@keeping.me.uk] Sent: Monday, February 29, 2016 4:35 AM To: Duy Nguyen Cc: Fred's Personal; Git Mailing List Subject: Re: Trouble Cloning Git remote repository On Mon, Feb 29, 2016 at 08:20:46AM +0700, Duy Nguyen wrote: > On Mon, Feb 29, 2016 at 12:48 AM, Fred's Personal > <freddiewik@optonline.net> wrote: > > 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'\''' > > This command looks good to me. So I have no clue what goes wrong :-) > Maybe you can execute this command directly, with more plink debugging > options or something. You don't have to run git-upload-pack. Just > spawn a shell. Another option is try something other than plink (does > git-for-windows come with ssh.exe?) On Windows it's probably going through mingw_spawnve_fd() which reassembles a quoted command line from the individual arguments. It would be interesting to see what gets passed to CreateProcessW(). > > ##>>>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: > >> $ 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 > > > > > > > > -- > Duy > -- > To unsubscribe from this list: send the line "unsubscribe git" in the > body of a message to majordomo@vger.kernel.org More majordomo info at > http://vger.kernel.org/majordomo-info.html ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2016.0.7442 / Virus Database: 4537/11716 - Release Date: 02/28/16 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Trouble Cloning Git remote repository 2016-03-01 15:04 ` Fred's Personal @ 2016-03-01 15:28 ` 'John Keeping' 0 siblings, 0 replies; 7+ messages in thread From: 'John Keeping' @ 2016-03-01 15:28 UTC (permalink / raw) To: Fred's Personal; +Cc: 'Duy Nguyen', 'Git Mailing List' On Tue, Mar 01, 2016 at 10:04:49AM -0500, Fred's Personal wrote: > Thanks for the insight, it's been a while since I debugged a Windows call > stack. Can you give me commands to view what gets passed to > CreateProcessW(). Sorry, my Windows knowledge is several years old. Maybe procmon[1] will show them? [1] https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx > -----Original Message----- > From: John Keeping [mailto:john@keeping.me.uk] > Sent: Monday, February 29, 2016 4:35 AM > To: Duy Nguyen > Cc: Fred's Personal; Git Mailing List > Subject: Re: Trouble Cloning Git remote repository > > On Mon, Feb 29, 2016 at 08:20:46AM +0700, Duy Nguyen wrote: > > On Mon, Feb 29, 2016 at 12:48 AM, Fred's Personal > > <freddiewik@optonline.net> wrote: > > > 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'\''' > > > > This command looks good to me. So I have no clue what goes wrong :-) > > Maybe you can execute this command directly, with more plink debugging > > options or something. You don't have to run git-upload-pack. Just > > spawn a shell. Another option is try something other than plink (does > > git-for-windows come with ssh.exe?) > > On Windows it's probably going through mingw_spawnve_fd() which reassembles > a quoted command line from the individual arguments. It would be > interesting to see what gets passed to CreateProcessW(). > > > > ##>>>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: > > >> $ 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 > > > > > > > > > > > > > > -- > > Duy > > -- > > To unsubscribe from this list: send the line "unsubscribe git" in the > > body of a message to majordomo@vger.kernel.org More majordomo info at > > http://vger.kernel.org/majordomo-info.html > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2016.0.7442 / Virus Database: 4537/11716 - Release Date: 02/28/16 > > > -- > To unsubscribe from this list: send the line "unsubscribe git" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-03-01 15:28 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-02-26 23:03 Trouble Cloning Git remote repository Fred's Personal 2016-02-27 9:35 ` Duy Nguyen 2016-02-28 17:48 ` Fred's Personal 2016-02-29 1:20 ` Duy Nguyen 2016-02-29 9:34 ` John Keeping 2016-03-01 15:04 ` Fred's Personal 2016-03-01 15:28 ` 'John Keeping'
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).