Re: [PATCH 0/3] git-clone fails when current user is not in /etc/passwd

2015-12-10 Thread Taylor Braun-Jones
On Thu, Dec 10, 2015 at 4:32 PM, Jeff King wrote: > So here's my solution, which instead carries the "is it bogus" flag > along with the default strings. > > [1/3]: ident: make xgetpwuid_self() a static local helper > [2/3]: ident: keep a flag for bogus default_email > [3/3]: ident: loosen

Re: git-clone fails when current user is not in /etc/passwd

2015-12-10 Thread Taylor Braun-Jones
On Thu, Dec 10, 2015 at 1:43 PM, Junio C Hamano wrote: > Duy Nguyen writes: > >> Well.. reflog needs it. So either you disable reflog at clone time or >> define name/email via config file. I don't see anything wrong with >> this behavior. > > Hmm, I am not quite sure about that. > > In the codepa

Re: git-clone fails when current user is not in /etc/passwd

2015-12-10 Thread Taylor Braun-Jones
On Wed, Dec 9, 2015 at 5:35 PM, Taylor Braun-Jones wrote: > > On Wed, Dec 9, 2015 at 1:24 PM, Duy Nguyen wrote: > > On Wed, Dec 9, 2015 at 5:08 PM, Duy Nguyen wrote: > >> On Wed, Dec 2, 2015 at 9:10 PM, Taylor Braun-Jones > >> wrote: > >>> My use

Re: git-clone fails when current user is not in /etc/passwd

2015-12-09 Thread Taylor Braun-Jones
On Wed, Dec 9, 2015 at 1:24 PM, Duy Nguyen wrote: > On Wed, Dec 9, 2015 at 5:08 PM, Duy Nguyen wrote: >> On Wed, Dec 2, 2015 at 9:10 PM, Taylor Braun-Jones >> wrote: >>> My use case it running git clone inside a docker container with >>> `docker run --user $(i

Re: git-clone fails when current user is not in /etc/passwd

2015-12-09 Thread Taylor Braun-Jones
What's the feeling on this one? If there's agreement in principle that git-clone should not fail when the current UID cannot be found in /etc/passwd then I'm happy to submit a patch to fix it. Thanks, Taylor On Wed, Dec 2, 2015 at 3:10 PM, Taylor Braun-Jones wrote: > My use c

git-clone fails when current user is not in /etc/passwd

2015-12-02 Thread Taylor Braun-Jones
My use case it running git clone inside a docker container with `docker run --user $(id -u):$(id -g) --volume /foo:/foo ...`. I want all /foo/* file creation/access from inside the Docker container to be done as the current uid/gid of the host system. Steps to reproduce: mkdir /tmp/docker-git cat

Re: fetching from an hg remote fails with bare git repositories

2015-08-06 Thread Taylor Braun-Jones
On Tue, Aug 4, 2015 at 7:03 PM, Mike Hommey wrote: > Another missing detail is what you're using for mercurial support in > git. I would guess https://github.com/felipec/git-remote-hg. Yes. I was going off some outdated information on the web that told me the felipec/git-remote-hg had moved to ma

Re: fetching from an hg remote fails with bare git repositories

2015-08-04 Thread Taylor Braun-Jones
On Tue, Aug 4, 2015 at 2:56 PM, Stefan Beller wrote: > On Tue, Aug 4, 2015 at 10:45 AM, Taylor Braun-Jones > wrote: >> Fetching from an hg remote fails with bare git repositories. Non-bare >> repositories work fine. >> >> Steps to reproduce: >> >> mkdi

fetching from an hg remote fails with bare git repositories

2015-08-04 Thread Taylor Braun-Jones
Fetching from an hg remote fails with bare git repositories. Non-bare repositories work fine. Steps to reproduce: mkdir /tmp/hgrepo cd /tmp/hgrepo hg init echo foo > foo.txt hg add foo.txt hg commit -m "add foo.txt" foo.txt git clone hg::/tmp/hgrepo/ /tmp/gitrepo cd /tmp/gitrepo/ git fetch # WORK