From: Junio C Hamano Date: Tue, 10 Dec 2013 19:14:33 GMT Subject: Re: Refspec wildcards for remotes require trailing slash Message-ID: In-Reply-To: <3B290FD1-EF2B-4419-8845-45C5A3B4A3D3@sweattechnologies.com> Monte Goulding writes: > Before I go ahead and look at what needs to be done for a patch I > thought it would be polite to ask if there is any reasoning behind > the trailing slash rule that I'm missing? Or if you are interested > in changing this behavior at all. The log messages of the two commits you cited in your message says that "refs/a/b/* should not match refs/a/b1, but the old code mistakenly allowed to". As long that fix is not broken, allowing "refs/a/b*" to match "refs/a/b1" is OK, I would think. But it is debatable if such a change should allow "refs/a/b*" to match "refs/a/b/2". Arguments can be made in both ways, and my knee-jerk reaction is it shouldn't.