From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Keeping Subject: Re: Trouble Cloning Git remote repository Date: Mon, 29 Feb 2016 09:34:51 +0000 Message-ID: <20160229093451.GC1766@serenity.lan> References: <009f01d170e9$ecd5cae0$c68160a0$@optonline.net> <00e001d17250$47c63fe0$d752bfa0$@optonline.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Fred's Personal , Git Mailing List To: Duy Nguyen X-From: git-owner@vger.kernel.org Mon Feb 29 10:35:16 2016 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aaKEV-0005Z6-Ma for gcvg-git-2@plane.gmane.org; Mon, 29 Feb 2016 10:35:16 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753449AbcB2JfG (ORCPT ); Mon, 29 Feb 2016 04:35:06 -0500 Received: from jackal.aluminati.org ([72.9.247.210]:45896 "EHLO jackal.aluminati.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753433AbcB2JfE (ORCPT ); Mon, 29 Feb 2016 04:35:04 -0500 Received: from localhost (localhost [127.0.0.1]) by jackal.aluminati.org (Postfix) with ESMTP id 9C139CDA5B8; Mon, 29 Feb 2016 09:35:02 +0000 (GMT) X-Quarantine-ID: <0zan9esvpBld> X-Virus-Scanned: Debian amavisd-new at serval.aluminati.org X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-9999 required=5 tests=[ALL_TRUSTED=-1, BAYES_40=-0.001, URIBL_BLOCKED=0.001] autolearn=no Received: from jackal.aluminati.org ([127.0.0.1]) by localhost (jackal.aluminati.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 0zan9esvpBld; Mon, 29 Feb 2016 09:35:01 +0000 (GMT) Received: from serenity.lan (chimera.aluminati.org [10.0.16.60]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by jackal.aluminati.org (Postfix) with ESMTPSA id EC71DCDA570; Mon, 29 Feb 2016 09:34:53 +0000 (GMT) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: 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 > 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 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