Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] [Announce] JGit / EGit Release 4.11.0.201803080745-r

On Sat, Mar 10, 2018 at 4:04 PM, Rüdiger Herrmann <ruediger.herrmann@xxxxxx> wrote:
Dear JGit devs,

the following test used to work with JGit 4.10 and earlier. After updating to version 4.11, the test fails:

  @Test
  public void testIsIgnored() throws IOException {
    IgnoreNode ignoreNode = new IgnoreNode();
    ignoreNode.parse( new ByteArrayInputStream( "bin/".getBytes( StandardCharsets.UTF_8 ) ) );

    MatchResult matchResult = ignoreNode.isIgnored( "bin/Foo.class", false );

    assertEquals( MatchResult.IGNORED, matchResult );
  }

Is this a regression or am I doing something wrong?

bisecting between 4.10 and 4.11 yields the following commit causing this test to fail:


commit 78420b7d0a65d591d00f32675efb0a42cda6c84a
Author: Marc Strapetz <marc.strapetz@xxxxxxxxxxx>
Date:   Fri Feb 23 13:34:23 2018 +0100

    Fix processing of gitignore negations

    Processing of negated rules, like !bin/ was not working correctly: they
    were interpreted too broad, resulting in unexpected untracked files
    which should actually be ignored

    Bug: 409664
    Change-Id: I0a422fd6607941461bf2175c9105a0311612efa0
    Signed-off-by: Marc Strapetz <marc.strapetz@xxxxxxxxxxx

Back to the top