Re: git fetch doesn't ignore funny refs

2014-01-04 Thread Heiko Voigt
On Tue, Dec 17, 2013 at 01:35:33PM +0100, Lorenzo Keller wrote: > A check as this one: > > if (check_refname_format(ref->name, 0)) >continue; > > fixes the problem for me. > > I report here bug and fix in the hope it can be reviewed and integrated > in future git releases. Since it seems yo

git fetch doesn't ignore funny refs

2013-12-17 Thread Lorenzo Keller
Hello, I'm trying to maintain a mirror of a repo that is published with gerrit. The repo contains a "funny ref" with name 'refs/tags/xyz/...' . When I clone the repo the ref is correctly ignored: > git clone --mirror ssh://server:29418/repo Cloning into bare repository 'repo.git'... error: * Ig