{"thread":{"id":"41542","subject":"Trouble Cloning Git remote repository","startedAt":"2016-02-26T23:03:37Z","lastAt":"2016-03-01T15:28:13Z","messageCount":7,"participants":["Fred's Personal","Duy Nguyen","John Keeping","'John Keeping'"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"279582","messageId":"009f01d170e9$ecd5cae0$c68160a0$@optonline.net","threadId":"41542","inReplyTo":null,"subject":"Trouble Cloning Git remote repository","fromName":"Fred's Personal","fromEmail":"freddiewik@optonline.net","sentAt":"2016-02-26T23:03:37Z","receivedAt":"2016-02-26T23:03:37Z","isPatch":false,"sender":{"key":"freddiewik@optonline.net","avatar":null},"body":"I am trying to set up a remote Git repository on my network server. \nI want to develop source on several desktops / laptops and want to have a\ncentral repository to sync everything and maintain version control. \nSeems like a good fit for Git, but I cannot get it to work and would\nappreciate advice on fixing the configuration or how to troubleshoot to\nidentify the root cause.\nPlease let me know what additional info you need to assist.\n\nI have listed the machine configurations and the Git Bash lines from\nattempting the git clone.\n\nConfiguration:\nLocal Machine (Host1)\no\tWindows 10 - Git for Windows 2.7.1.2-64bit update\no\tGit Repository = ~HOME/gitrepository\nRemote Machine (Host2)\no\tUbuntu Server 14.04 LTS; Git version 2.7.2\no\tGit repository = /srv/centralrepo.git ;created with -bare -shared\no\t           Owner= user1; group= developer\no\tCreated ~/.bashrc to ensure PATH is set correctly with 'interactive\nnon-login' session\no\tAfter .bashrc runs there is a line from a bash script that causes a\nbash error: \"bash: user1@Host2: command not found\" \n\nClone to the remote repository always fails with:\n  bash: user1@Host2: command not found\n  fatal: Could not read from remote repository.\n\n  Please make sure you have the correct access rights\n  and the repository exists.\n\nAll command line text shown here is executed from Local Machine(Host1) (from\nWindows Git Bash) My comments preceded with ## \n## First cd into local repository and check status;\nuser1@Host1 MINGW64 ~\n$ cd $HOME/gitrepository\nuser1@Host1 MINGW64 ~/gitrepository (master)\n$ git status\nOn branch master\nnothing to commit, working directory clean\n\n## Now try to clone remote repository on Host2 (added set -x to ~/.bashrc\nscript)\nuser1@Host1 MINGW64 ~/gitrepository (master)\n$ git clone -v ssh://user1@Host2/srv/centralrepo\nCloning into 'centralrepo'...\n>>>Lines from $HOME/.bashrc\n  + export\nPATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games\n:/usr/local/games\n  +\nPATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games\n:/usr/local/games\n  + PROMPT_COMMAND=\n  + CDPATH=\n  + '[' '' = yes ']'\n  + PS1='${debian_chroot:+($debian_chroot)}\\u:\\W\\$ '\n  + export GIT_TRACE_PACKET=1\n  + GIT_TRACE_PACKET=1\n  + export GIT_TRACE=1\n  + GIT_TRACE=1\n>>>End of Lines from $HOME/.bashrc\n## WHERE DOES The following line COME FROM????What Script spits out this\nline????\n  + user1@Host2 git-upload-pack /srv/centralrepo\n  bash: user1@Host2: command not found\n  fatal: Could not read from remote repository.\n\n  Please make sure you have the correct access rights\n  and the repository exists.\n\n## Check remote path for interactive non-login session\nuser1@Host1 MINGW64 ~/gitrepository (master)\n$ ssh user1@Host2 echo \\$PATH\nEnter passphrase for key '/c/Users/user1/.ssh/id_rsa':\n## >>>Lines from $HOME/.bashrc (See Above, removed here for clarity)\n##  PATH looks okay\n+ echo\n/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr\n/local/games\n/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr\n/local/games\n\n## List remote Git respository to check permissions\nuser1@Host1 MINGW64 ~/gitrepository (master)\n$ ssh user1@Host2 ls -al /srv/centralrepo.git\nEnter passphrase for key '/c/Users/user1/.ssh/id_rsa':\n##  >>>Lines from $HOME/.bashrc (See Above, removed here for clarity)\n##  CHECK the permissions and owner of the remote git repository\n+ ls -al /srv/centralrepo.git\ntotal 44\ndrwxrwsrwx 7 user1 developer 4096 Feb 11 21:02 .\ndrwxrwxrwx 4 user1 developer 4096 Feb  2 08:15 ..\ndrwxrwsrwx 2 user1 developer 4096 Feb  2 08:16 branches\n-rwxrwxrwx 1 user1 developer  224 Feb  4 18:09 config\n-rwxrwxrwx 1 user1 developer   26 Feb 11 21:02 description\n-rwxrwxrwx 1 user1 developer   23 Feb  2 08:16 HEAD\ndrwxrwsrwx 2 user1 developer 4096 Feb  2 08:16 hooks\ndrwxrwsrwx 2 user1 developer 4096 Feb  2 08:16 info\ndrwxrwsrwx 4 user1 developer 4096 Feb  2 08:16 objects\ndrwxrwsrwx 4 user1 developer 4096 Feb  2 08:16 refs\n-rw-rw-r-- 1 user1 developer   52 Feb 11 19:37 sample.txt\n\n## Try cloning with -u option and path to upload-pack\nuser1@Host1 MINGW64 ~/gitrepository (master)\n$ git clone -u /usr/bin/git-upload-pack ssh://user1@Host2/srv/centralrepo\nCloning into 'centralrepo'...\n## >>>Lines from $HOME/.bashrc (See Above, removed here for clarity)\n## ***** POSIX directory translation messed up this path\n+ user1@Host2 C:/Program Files/Git/usr/bin/git-upload-pack /srv/centralrepo\nbash: user1@Host2: command not found\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n\n## List the remote repository config\nuser1@Host1 MINGW64 ~/gitrepository (master)\n$ ssh user1@Host2 cat /srv/centralrepo.git/config\nEnter passphrase for key '/c/Users/user1/.ssh/id_rsa':\n## >>>Lines from $HOME/.bashrc (See Above, removed here for clarity)\n+ cat /srv/centralrepo.git/config\n[core]\n        repositoryformatversion = 0\n        filemode = true\n        bare = true\n        sharedrepository = 1\n[receive]\n        denyNonFastforwards = true\n[remote \"origin\"]\n        uploadpack = /usr/bin/git-upload-pack\n        receivepack = /usr/bin/git-receive-pack\n\n## List Git version\nuser1@Host1 MINGW64 ~/gitrepository (master)\n$ ssh user1@Host2 git --version\nEnter passphrase for key '/c/Users/phreddyw/.ssh/id_rsa':\n## >>>Lines from $HOME/.bashrc (See Above, removed here for clarity)\n+ git --version\ntrace: built-in: git 'version'\ngit version 2.7.2\n\n\n\n\nRegards,\nFred \n"},{"id":"298978","messageId":"CACsJy8A5539X+VhUAnNfn5Q_uW1pa5oYb9YAAF8=u3XfdhAeMw@mail.gmail.com","threadId":"41542","inReplyTo":"009f01d170e9$ecd5cae0$c68160a0$@optonline.net","subject":"Re: Trouble Cloning Git remote repository","fromName":"Duy Nguyen","fromEmail":"pclouds@gmail.com","sentAt":"2016-02-27T09:35:57Z","receivedAt":"2016-02-27T09:35:57Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Sat, Feb 27, 2016 at 6:03 AM, Fred's Personal\n<freddiewik@optonline.net> wrote:\n> $ git clone -v ssh://user1@Host2/srv/centralrepo\n> Cloning into 'centralrepo'...\n>>>>Lines from $HOME/.bashrc\n>   + export\n> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games\n> :/usr/local/games\n>   +\n> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games\n> :/usr/local/games\n>   + PROMPT_COMMAND=\n>   + CDPATH=\n>   + '[' '' = yes ']'\n>   + PS1='${debian_chroot:+($debian_chroot)}\\u:\\W\\$ '\n>   + export GIT_TRACE_PACKET=1\n>   + GIT_TRACE_PACKET=1\n>   + export GIT_TRACE=1\n>   + GIT_TRACE=1\n>>>>End of Lines from $HOME/.bashrc\n> ## WHERE DOES The following line COME FROM????What Script spits out this\n> line????\n>   + user1@Host2 git-upload-pack /srv/centralrepo\n\nTry set GIT_TRACE=1 at the clone line, I have a feeling that this line\nshould be \"ssh user@Host2...\" but \"ssh\" is missing.\n\n$ export GIT_TRACE=1\n$ git clone -v ssh://user1@Host2/srv/centralrepo\n-- \nDuy\n"},{"id":"279719","messageId":"00e001d17250$47c63fe0$d752bfa0$@optonline.net","threadId":"41542","inReplyTo":"CACsJy8A5539X+VhUAnNfn5Q_uW1pa5oYb9YAAF8=u3XfdhAeMw@mail.gmail.com","subject":"RE: Trouble Cloning Git remote repository","fromName":"Fred's Personal","fromEmail":"freddiewik@optonline.net","sentAt":"2016-02-28T17:48:49Z","receivedAt":"2016-02-28T17:48:49Z","isPatch":false,"sender":{"key":"freddiewik@optonline.net","avatar":null},"body":"Duy,\n\nThanks for advice, here is the result of executing the lines you suggested:\n\nuser1@Host1 MINGW64 ~/gitrepository (master)\n$ export GIT_TRACE=1\n\nuser1@Host1 MINGW64 ~/gitrepository (master)\n$ git clone -v ssh://user1@Host2/srv/centralrepo\n12:33:47.928365 git.c:348               trace: built-in: git 'clone' '-v' 'ssh://user1@Host2/srv/centralrepo'\nCloning into 'centralrepo'...\n12:33:48.022110 run-command.c:343       trace: run_command: 'C:\\Program Files (x86)\\PuTTY\\plink.exe' 'user1@Host2' 'git-upload-pack '\\''/srv/centralrepo'\\'''\n\n##>>>Lines from $HOME/.bashrc (See below, removed here for clarity)\n\n+ user1@Host2 git-upload-pack /srv/centralrepo\nbash: user1@Host2: command not found\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n\n\nRegards,\nFred \n\nfreddiewik@optonline.net\n\n\n-----Original Message-----\nFrom: Duy Nguyen [mailto:pclouds@gmail.com] \nSent: Saturday, February 27, 2016 4:36 AM\nTo: Fred's Personal\nCc: Git Mailing List\nSubject: Re: Trouble Cloning Git remote repository\n\nOn Sat, Feb 27, 2016 at 6:03 AM, Fred's Personal <freddiewik@optonline.net> wrote:\n> $ git clone -v ssh://user1@Host2/srv/centralrepo Cloning into \n> 'centralrepo'...\n>>>>Lines from $HOME/.bashrc\n>   + export\n> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr\n> /games\n> :/usr/local/games\n>   +\n> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr\n> /games\n> :/usr/local/games\n>   + PROMPT_COMMAND=\n>   + CDPATH=\n>   + '[' '' = yes ']'\n>   + PS1='${debian_chroot:+($debian_chroot)}\\u:\\W\\$ '\n>   + export GIT_TRACE_PACKET=1\n>   + GIT_TRACE_PACKET=1\n>   + export GIT_TRACE=1\n>   + GIT_TRACE=1\n>>>>End of Lines from $HOME/.bashrc\n> ## WHERE DOES The following line COME FROM????What Script spits out \n> this line????\n>   + user1@Host2 git-upload-pack /srv/centralrepo\n\nTry set GIT_TRACE=1 at the clone line, I have a feeling that this line should be \"ssh user@Host2...\" but \"ssh\" is missing.\n\n$ export GIT_TRACE=1\n$ git clone -v ssh://user1@Host2/srv/centralrepo\n--\nDuy\n\n\n-----\nNo virus found in this message.\nChecked by AVG - www.avg.com\nVersion: 2016.0.7442 / Virus Database: 4537/11702 - Release Date: 02/26/16\n"},{"id":"279737","messageId":"CACsJy8CSrmahLztOmmU+R4KTifhRs5nsSPKOdYHHw57UqDv8oQ@mail.gmail.com","threadId":"41542","inReplyTo":"00e001d17250$47c63fe0$d752bfa0$@optonline.net","subject":"Re: Trouble Cloning Git remote repository","fromName":"Duy Nguyen","fromEmail":"pclouds@gmail.com","sentAt":"2016-02-29T01:20:46Z","receivedAt":"2016-02-29T01:20:46Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Mon, Feb 29, 2016 at 12:48 AM, Fred's Personal\n<freddiewik@optonline.net> wrote:\n> Duy,\n>\n> Thanks for advice, here is the result of executing the lines you suggested:\n>\n> user1@Host1 MINGW64 ~/gitrepository (master)\n> $ export GIT_TRACE=1\n>\n> user1@Host1 MINGW64 ~/gitrepository (master)\n> $ git clone -v ssh://user1@Host2/srv/centralrepo\n> 12:33:47.928365 git.c:348               trace: built-in: git 'clone' '-v' 'ssh://user1@Host2/srv/centralrepo'\n> Cloning into 'centralrepo'...\n> 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'\\'''\n\nThis command looks good to me. So I have no clue what goes wrong :-)\nMaybe you can execute this command directly, with more plink debugging\noptions or something. You don't have to run git-upload-pack. Just\nspawn a shell. Another option is try something other than plink (does\ngit-for-windows come with ssh.exe?)\n\n>\n> ##>>>Lines from $HOME/.bashrc (See below, removed here for clarity)\n>\n> + user1@Host2 git-upload-pack /srv/centralrepo\n> bash: user1@Host2: command not found\n> fatal: Could not read from remote repository.\n>\n> Please make sure you have the correct access rights\n> and the repository exists.\n>\n>\n> Regards,\n> Fred\n>\n> freddiewik@optonline.net\n>\n>\n> -----Original Message-----\n> From: Duy Nguyen [mailto:pclouds@gmail.com]\n> Sent: Saturday, February 27, 2016 4:36 AM\n> To: Fred's Personal\n> Cc: Git Mailing List\n> Subject: Re: Trouble Cloning Git remote repository\n>\n> On Sat, Feb 27, 2016 at 6:03 AM, Fred's Personal <freddiewik@optonline.net> wrote:\n>> $ git clone -v ssh://user1@Host2/srv/centralrepo Cloning into\n>> 'centralrepo'...\n>>>>>Lines from $HOME/.bashrc\n>>   + export\n>> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr\n>> /games\n>> :/usr/local/games\n>>   +\n>> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr\n>> /games\n>> :/usr/local/games\n>>   + PROMPT_COMMAND=\n>>   + CDPATH=\n>>   + '[' '' = yes ']'\n>>   + PS1='${debian_chroot:+($debian_chroot)}\\u:\\W\\$ '\n>>   + export GIT_TRACE_PACKET=1\n>>   + GIT_TRACE_PACKET=1\n>>   + export GIT_TRACE=1\n>>   + GIT_TRACE=1\n>>>>>End of Lines from $HOME/.bashrc\n>> ## WHERE DOES The following line COME FROM????What Script spits out\n>> this line????\n>>   + user1@Host2 git-upload-pack /srv/centralrepo\n>\n> 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.\n>\n> $ export GIT_TRACE=1\n> $ git clone -v ssh://user1@Host2/srv/centralrepo\n> --\n> Duy\n>\n>\n> -----\n> No virus found in this message.\n> Checked by AVG - www.avg.com\n> Version: 2016.0.7442 / Virus Database: 4537/11702 - Release Date: 02/26/16\n>\n>\n\n\n\n-- \nDuy\n"},{"id":"279755","messageId":"20160229093451.GC1766@serenity.lan","threadId":"41542","inReplyTo":"CACsJy8CSrmahLztOmmU+R4KTifhRs5nsSPKOdYHHw57UqDv8oQ@mail.gmail.com","subject":"Re: Trouble Cloning Git remote repository","fromName":"John Keeping","fromEmail":"john@keeping.me.uk","sentAt":"2016-02-29T09:34:51Z","receivedAt":"2016-02-29T09:34:51Z","isPatch":false,"sender":{"key":"john@keeping.me.uk","avatar":"https://avatars.githubusercontent.com/u/1702081?v=4"},"body":"On Mon, Feb 29, 2016 at 08:20:46AM +0700, Duy Nguyen wrote:\n> On Mon, Feb 29, 2016 at 12:48 AM, Fred's Personal\n> <freddiewik@optonline.net> wrote:\n> > Duy,\n> >\n> > Thanks for advice, here is the result of executing the lines you suggested:\n> >\n> > user1@Host1 MINGW64 ~/gitrepository (master)\n> > $ export GIT_TRACE=1\n> >\n> > user1@Host1 MINGW64 ~/gitrepository (master)\n> > $ git clone -v ssh://user1@Host2/srv/centralrepo\n> > 12:33:47.928365 git.c:348               trace: built-in: git 'clone' '-v' 'ssh://user1@Host2/srv/centralrepo'\n> > Cloning into 'centralrepo'...\n> > 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'\\'''\n> \n> This command looks good to me. So I have no clue what goes wrong :-)\n> Maybe you can execute this command directly, with more plink debugging\n> options or something. You don't have to run git-upload-pack. Just\n> spawn a shell. Another option is try something other than plink (does\n> git-for-windows come with ssh.exe?)\n\nOn Windows it's probably going through mingw_spawnve_fd() which\nreassembles a quoted command line from the individual arguments.  It\nwould be interesting to see what gets passed to CreateProcessW().\n\n> > ##>>>Lines from $HOME/.bashrc (See below, removed here for clarity)\n> >\n> > + user1@Host2 git-upload-pack /srv/centralrepo\n> > bash: user1@Host2: command not found\n> > fatal: Could not read from remote repository.\n> >\n> > Please make sure you have the correct access rights\n> > and the repository exists.\n> >\n> >\n> > Regards,\n> > Fred\n> >\n> > freddiewik@optonline.net\n> >\n> >\n> > -----Original Message-----\n> > From: Duy Nguyen [mailto:pclouds@gmail.com]\n> > Sent: Saturday, February 27, 2016 4:36 AM\n> > To: Fred's Personal\n> > Cc: Git Mailing List\n> > Subject: Re: Trouble Cloning Git remote repository\n> >\n> > On Sat, Feb 27, 2016 at 6:03 AM, Fred's Personal <freddiewik@optonline.net> wrote:\n> >> $ git clone -v ssh://user1@Host2/srv/centralrepo Cloning into\n> >> 'centralrepo'...\n> >>>>>Lines from $HOME/.bashrc\n> >>   + export\n> >> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr\n> >> /games\n> >> :/usr/local/games\n> >>   +\n> >> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr\n> >> /games\n> >> :/usr/local/games\n> >>   + PROMPT_COMMAND=\n> >>   + CDPATH=\n> >>   + '[' '' = yes ']'\n> >>   + PS1='${debian_chroot:+($debian_chroot)}\\u:\\W\\$ '\n> >>   + export GIT_TRACE_PACKET=1\n> >>   + GIT_TRACE_PACKET=1\n> >>   + export GIT_TRACE=1\n> >>   + GIT_TRACE=1\n> >>>>>End of Lines from $HOME/.bashrc\n> >> ## WHERE DOES The following line COME FROM????What Script spits out\n> >> this line????\n> >>   + user1@Host2 git-upload-pack /srv/centralrepo\n> >\n> > 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.\n> >\n> > $ export GIT_TRACE=1\n> > $ git clone -v ssh://user1@Host2/srv/centralrepo\n> > --\n> > Duy\n> >\n> >\n> > -----\n> > No virus found in this message.\n> > Checked by AVG - www.avg.com\n> > Version: 2016.0.7442 / Virus Database: 4537/11702 - Release Date: 02/26/16\n> >\n> >\n> \n> \n> \n> -- \n> Duy\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"},{"id":"279972","messageId":"002701d173cb$b3604080$1a20c180$@optonline.net","threadId":"41542","inReplyTo":"20160229093451.GC1766@serenity.lan","subject":"RE: Trouble Cloning Git remote repository","fromName":"Fred's Personal","fromEmail":"freddiewik@optonline.net","sentAt":"2016-03-01T15:04:49Z","receivedAt":"2016-03-01T15:04:49Z","isPatch":false,"sender":{"key":"freddiewik@optonline.net","avatar":null},"body":"John,\n\nThanks for the insight, it's been a while since I debugged a Windows call\nstack. Can you give me commands to view what gets passed to\nCreateProcessW().\n\nRegards,\nFred \n\nfreddiewik@optonline.net\n\n\n-----Original Message-----\nFrom: John Keeping [mailto:john@keeping.me.uk] \nSent: Monday, February 29, 2016 4:35 AM\nTo: Duy Nguyen\nCc: Fred's Personal; Git Mailing List\nSubject: Re: Trouble Cloning Git remote repository\n\nOn Mon, Feb 29, 2016 at 08:20:46AM +0700, Duy Nguyen wrote:\n> On Mon, Feb 29, 2016 at 12:48 AM, Fred's Personal \n> <freddiewik@optonline.net> wrote:\n> > Duy,\n> >\n> > Thanks for advice, here is the result of executing the lines you\nsuggested:\n> >\n> > user1@Host1 MINGW64 ~/gitrepository (master) $ export GIT_TRACE=1\n> >\n> > user1@Host1 MINGW64 ~/gitrepository (master) $ git clone -v \n> > ssh://user1@Host2/srv/centralrepo\n> > 12:33:47.928365 git.c:348               trace: built-in: git 'clone'\n'-v' 'ssh://user1@Host2/srv/centralrepo'\n> > Cloning into 'centralrepo'...\n> > 12:33:48.022110 run-command.c:343       trace: run_command: 'C:\\Program\nFiles (x86)\\PuTTY\\plink.exe' 'user1@Host2' 'git-upload-pack\n'\\''/srv/centralrepo'\\'''\n> \n> This command looks good to me. So I have no clue what goes wrong :-) \n> Maybe you can execute this command directly, with more plink debugging \n> options or something. You don't have to run git-upload-pack. Just \n> spawn a shell. Another option is try something other than plink (does \n> git-for-windows come with ssh.exe?)\n\nOn Windows it's probably going through mingw_spawnve_fd() which reassembles\na quoted command line from the individual arguments.  It would be\ninteresting to see what gets passed to CreateProcessW().\n\n> > ##>>>Lines from $HOME/.bashrc (See below, removed here for clarity)\n> >\n> > + user1@Host2 git-upload-pack /srv/centralrepo\n> > bash: user1@Host2: command not found\n> > fatal: Could not read from remote repository.\n> >\n> > Please make sure you have the correct access rights and the \n> > repository exists.\n> >\n> >\n> > Regards,\n> > Fred\n> >\n> > freddiewik@optonline.net\n> >\n> >\n> > -----Original Message-----\n> > From: Duy Nguyen [mailto:pclouds@gmail.com]\n> > Sent: Saturday, February 27, 2016 4:36 AM\n> > To: Fred's Personal\n> > Cc: Git Mailing List\n> > Subject: Re: Trouble Cloning Git remote repository\n> >\n> > On Sat, Feb 27, 2016 at 6:03 AM, Fred's Personal\n<freddiewik@optonline.net> wrote:\n> >> $ git clone -v ssh://user1@Host2/srv/centralrepo Cloning into \n> >> 'centralrepo'...\n> >>>>>Lines from $HOME/.bashrc\n> >>   + export\n> >> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/\n> >> usr\n> >> /games\n> >> :/usr/local/games\n> >>   +\n> >> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/\n> >> usr\n> >> /games\n> >> :/usr/local/games\n> >>   + PROMPT_COMMAND=\n> >>   + CDPATH=\n> >>   + '[' '' = yes ']'\n> >>   + PS1='${debian_chroot:+($debian_chroot)}\\u:\\W\\$ '\n> >>   + export GIT_TRACE_PACKET=1\n> >>   + GIT_TRACE_PACKET=1\n> >>   + export GIT_TRACE=1\n> >>   + GIT_TRACE=1\n> >>>>>End of Lines from $HOME/.bashrc\n> >> ## WHERE DOES The following line COME FROM????What Script spits out \n> >> this line????\n> >>   + user1@Host2 git-upload-pack /srv/centralrepo\n> >\n> > Try set GIT_TRACE=1 at the clone line, I have a feeling that this line\nshould be \"ssh user@Host2...\" but \"ssh\" is missing.\n> >\n> > $ export GIT_TRACE=1\n> > $ git clone -v ssh://user1@Host2/srv/centralrepo\n> > --\n> > Duy\n> >\n> >\n> > -----\n> > No virus found in this message.\n> > Checked by AVG - www.avg.com\n> > Version: 2016.0.7442 / Virus Database: 4537/11702 - Release Date: \n> > 02/26/16\n> >\n> >\n> \n> \n> \n> --\n> Duy\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in the \n> body of a message to majordomo@vger.kernel.org More majordomo info at  \n> http://vger.kernel.org/majordomo-info.html\n\n\n-----\nNo virus found in this message.\nChecked by AVG - www.avg.com\nVersion: 2016.0.7442 / Virus Database: 4537/11716 - Release Date: 02/28/16\n"},{"id":"279974","messageId":"20160301152813.GD1766@serenity.lan","threadId":"41542","inReplyTo":"002701d173cb$b3604080$1a20c180$@optonline.net","subject":"Re: Trouble Cloning Git remote repository","fromName":"'John Keeping'","fromEmail":"john@keeping.me.uk","sentAt":"2016-03-01T15:28:13Z","receivedAt":"2016-03-01T15:28:13Z","isPatch":false,"sender":{"key":"john@keeping.me.uk","avatar":"https://avatars.githubusercontent.com/u/1702081?v=4"},"body":"On Tue, Mar 01, 2016 at 10:04:49AM -0500, Fred's Personal wrote:\n> Thanks for the insight, it's been a while since I debugged a Windows call\n> stack. Can you give me commands to view what gets passed to\n> CreateProcessW().\n\nSorry, my Windows knowledge is several years old.  Maybe procmon[1] will\nshow them?\n\n[1] https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx\n\n> -----Original Message-----\n> From: John Keeping [mailto:john@keeping.me.uk] \n> Sent: Monday, February 29, 2016 4:35 AM\n> To: Duy Nguyen\n> Cc: Fred's Personal; Git Mailing List\n> Subject: Re: Trouble Cloning Git remote repository\n> \n> On Mon, Feb 29, 2016 at 08:20:46AM +0700, Duy Nguyen wrote:\n> > On Mon, Feb 29, 2016 at 12:48 AM, Fred's Personal \n> > <freddiewik@optonline.net> wrote:\n> > > Duy,\n> > >\n> > > Thanks for advice, here is the result of executing the lines you\n> suggested:\n> > >\n> > > user1@Host1 MINGW64 ~/gitrepository (master) $ export GIT_TRACE=1\n> > >\n> > > user1@Host1 MINGW64 ~/gitrepository (master) $ git clone -v \n> > > ssh://user1@Host2/srv/centralrepo\n> > > 12:33:47.928365 git.c:348               trace: built-in: git 'clone'\n> '-v' 'ssh://user1@Host2/srv/centralrepo'\n> > > Cloning into 'centralrepo'...\n> > > 12:33:48.022110 run-command.c:343       trace: run_command: 'C:\\Program\n> Files (x86)\\PuTTY\\plink.exe' 'user1@Host2' 'git-upload-pack\n> '\\''/srv/centralrepo'\\'''\n> > \n> > This command looks good to me. So I have no clue what goes wrong :-) \n> > Maybe you can execute this command directly, with more plink debugging \n> > options or something. You don't have to run git-upload-pack. Just \n> > spawn a shell. Another option is try something other than plink (does \n> > git-for-windows come with ssh.exe?)\n> \n> On Windows it's probably going through mingw_spawnve_fd() which reassembles\n> a quoted command line from the individual arguments.  It would be\n> interesting to see what gets passed to CreateProcessW().\n> \n> > > ##>>>Lines from $HOME/.bashrc (See below, removed here for clarity)\n> > >\n> > > + user1@Host2 git-upload-pack /srv/centralrepo\n> > > bash: user1@Host2: command not found\n> > > fatal: Could not read from remote repository.\n> > >\n> > > Please make sure you have the correct access rights and the \n> > > repository exists.\n> > >\n> > >\n> > > Regards,\n> > > Fred\n> > >\n> > > freddiewik@optonline.net\n> > >\n> > >\n> > > -----Original Message-----\n> > > From: Duy Nguyen [mailto:pclouds@gmail.com]\n> > > Sent: Saturday, February 27, 2016 4:36 AM\n> > > To: Fred's Personal\n> > > Cc: Git Mailing List\n> > > Subject: Re: Trouble Cloning Git remote repository\n> > >\n> > > On Sat, Feb 27, 2016 at 6:03 AM, Fred's Personal\n> <freddiewik@optonline.net> wrote:\n> > >> $ git clone -v ssh://user1@Host2/srv/centralrepo Cloning into \n> > >> 'centralrepo'...\n> > >>>>>Lines from $HOME/.bashrc\n> > >>   + export\n> > >> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/\n> > >> usr\n> > >> /games\n> > >> :/usr/local/games\n> > >>   +\n> > >> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/\n> > >> usr\n> > >> /games\n> > >> :/usr/local/games\n> > >>   + PROMPT_COMMAND=\n> > >>   + CDPATH=\n> > >>   + '[' '' = yes ']'\n> > >>   + PS1='${debian_chroot:+($debian_chroot)}\\u:\\W\\$ '\n> > >>   + export GIT_TRACE_PACKET=1\n> > >>   + GIT_TRACE_PACKET=1\n> > >>   + export GIT_TRACE=1\n> > >>   + GIT_TRACE=1\n> > >>>>>End of Lines from $HOME/.bashrc\n> > >> ## WHERE DOES The following line COME FROM????What Script spits out \n> > >> this line????\n> > >>   + user1@Host2 git-upload-pack /srv/centralrepo\n> > >\n> > > Try set GIT_TRACE=1 at the clone line, I have a feeling that this line\n> should be \"ssh user@Host2...\" but \"ssh\" is missing.\n> > >\n> > > $ export GIT_TRACE=1\n> > > $ git clone -v ssh://user1@Host2/srv/centralrepo\n> > > --\n> > > Duy\n> > >\n> > >\n> > > -----\n> > > No virus found in this message.\n> > > Checked by AVG - www.avg.com\n> > > Version: 2016.0.7442 / Virus Database: 4537/11702 - Release Date: \n> > > 02/26/16\n> > >\n> > >\n> > \n> > \n> > \n> > --\n> > Duy\n> > --\n> > To unsubscribe from this list: send the line \"unsubscribe git\" in the \n> > body of a message to majordomo@vger.kernel.org More majordomo info at  \n> > http://vger.kernel.org/majordomo-info.html\n> \n> \n> -----\n> No virus found in this message.\n> Checked by AVG - www.avg.com\n> Version: 2016.0.7442 / Virus Database: 4537/11716 - Release Date: 02/28/16\n> \n> \n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"}]}