]> source.dussan.org Git - jgit.git/commitdiff
LocalDiskRepositoryTestCase: Add clarifying comment in call to createRepository 14/90814/2
authorDavid Pursehouse <david.pursehouse@gmail.com>
Fri, 10 Feb 2017 10:51:52 +0000 (19:51 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Fri, 10 Feb 2017 12:04:03 +0000 (21:04 +0900)
Clarify that 'true' means 'auto close'. This makes it consistent with
other calls that have a boolean argument for 'bare'. It also makes it a
bit easier to see what's going on while stepping in the debugger, because
it's not necessary to scroll around to find the method declaration.

Change-Id: Idacd749407dcfd258af3efaaf44d129069925dd3
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java

index ceb0452350d8eda53d2d0cbed323c912f6e59285..b7929424f2575d820864528d3e7c65b5fbc9be79 100644 (file)
@@ -361,7 +361,7 @@ public abstract class LocalDiskRepositoryTestCase {
         */
        private FileRepository createRepository(boolean bare)
                        throws IOException {
-               return createRepository(bare, true);
+               return createRepository(bare, true /* auto close */);
        }
 
        /**