From: Jeff King <peff@peff.net>
To: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Cc: Git List <git@vger.kernel.org>
Subject: Re: [RFC] a tale of Git 2.5, ssh transport and GIT_* environment variables
Date: Fri, 4 Sep 2015 10:26:31 -0400 [thread overview]
Message-ID: <20150904142630.GA11830@sigill.intra.peff.net> (raw)
In-Reply-To: <CAOxFTcwYJqFHrBkie19Fm3AqeYmSLRNBpBtOAkiYmfO9UgN-0g@mail.gmail.com>
On Fri, Sep 04, 2015 at 04:02:09PM +0200, Giuseppe Bilotta wrote:
> So, I've at least been able to circumscribe the problem to: server git
> 1.7.0.4, client git 2.5, GIT_WORK_TREE being sent over the ssh
> connection. I'll see if I can find some time to do some proper
> bisecting next week.
That sounds like progress. I was hoping I could replicate it with that
information, but I still can't:
LOCAL_GIT=git.v2.5.0
REMOTE_GIT=/home/peff/compile/git/bin-wrappers/git
$ $LOCAL_GIT version
git version 2.5.0
$ ssh git.peff.net $REMOTE_GIT version
git version 1.7.0.4
$ ssh git.peff.net "rm -rf /tmp/foo.git; $REMOTE_GIT init --bare /tmp/foo.git"
$ GIT_DIR=$PWD/.git GIT_WORK_TREE=$PWD $LOCAL_GIT push \
--receive-pack="env | grep GIT >&2; $REMOTE_GIT receive-pack" \
git.peff.net:/tmp/foo.git HEAD:branch
GIT_DIR=/home/peff/tmp/.git
GIT_WORK_TREE=/home/peff/tmp
GIT_PREFIX=
Counting objects: 3, done.
Writing objects: 100% (3/3), 208 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To git.peff.net:/tmp/foo.git
* [new branch] HEAD -> branch
Interestingly, if I try pushing straight to master, the remote side
complains about trying to push the checked-out branch, even though it's
a bare repo (presumably it's getting confused by the GIT_WORK_TREE
setting; so that's _a_ bug, but not the one you are seeing).
So I'm not sure what is different about my setup and yours.
-Peff
next prev parent reply other threads:[~2015-09-04 14:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-04 10:52 [RFC] a tale of Git 2.5, ssh transport and GIT_* environment variables Giuseppe Bilotta
2015-09-04 12:54 ` Jeff King
2015-09-04 14:02 ` Giuseppe Bilotta
2015-09-04 14:26 ` Jeff King [this message]
2015-09-04 18:18 ` Junio C Hamano
2015-09-04 21:10 ` Giuseppe Bilotta
2015-09-04 21:44 ` Jeff King
2015-09-04 22:40 ` [PATCH] git_connect: clear GIT_* environment for ssh Jeff King
2015-09-05 13:50 ` Giuseppe Bilotta
2015-09-08 8:33 ` [PATCH] git_connect: clarify conn->use_shell flag Jeff King
2015-09-08 17:18 ` Junio C Hamano
2015-09-08 21:40 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150904142630.GA11830@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=giuseppe.bilotta@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).