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

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 >

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 <tay...@braun-jones.org> wrote: > > On Wed, Dec 9, 2015 at 1:24 PM, Duy Nguyen <pclo...@gmail.com> wrote: > > On Wed, Dec 9, 2015 at 5:08 PM, Duy Nguyen <pclo...@gmail.com> wrote: > >> On Wed, Dec 2, 2015 a

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 <tay...@braun-jones.org> wrote

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 <pclo...@gmail.com> wrote: > On Wed, Dec 9, 2015 at 5:08 PM, Duy Nguyen <pclo...@gmail.com> wrote: >> On Wed, Dec 2, 2015 at 9:10 PM, Taylor Braun-Jones >> <tay...@braun-jones.org> wrote: >>> My use case it r

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

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 m...@glandium.org 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

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 sbel...@google.com wrote: On Tue, Aug 4, 2015 at 10:45 AM, Taylor Braun-Jones tay...@braun-jones.org wrote: Fetching from an hg remote fails with bare git repositories. Non-bare repositories work fine. Steps to reproduce: mkdir /tmp/hgrepo cd

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 # WORKS