Re: [PATCH v2 5/5] ls-remote: add support for showing symrefs
From: Thomas Gummerer <hidden>
Date: 2016-06-15 23:07:48
On 01/18, Jeff King wrote:
On Mon, Jan 18, 2016 at 11:09:13PM +0100, Thomas Gummerer wrote:quoted
quoted
+test_expect_failure 'ls-remote with filtered symrefs (--heads)' ' + git symbolic-ref refs/heads/foo refs/tags/mark && + cat >expect <<-\EOF && + ref: refs/heads/bar refs/tags/mark + 1bd44cb9d13204b0fe1958db0082f5028a16eb3a refs/heads/foo + 1bd44cb9d13204b0fe1958db0082f5028a16eb3a refs/heads/master + EOF + git ls-remote --symrefs --heads . >actual && + test_cmp expect actual +'I'm a bit confused by this. Shouldn't the "ref: refs/heads/bar refs/tags/mark" line only show up when we use --tags, not --heads? Also should refs/heads/bar be refs/heads/foo?Yes, sorry, I bungled this. It should expect: ref: refs/tags/mark\trefs/heads/foo I changed my mind about which refs to use halfway through writing, and of course because it is marked to expect failure, running the test didn't clue me in. :)
Heh, thanks for clearing this up :-)
-Peff
-- Thomas