Change-Id: Ie65c69e0f1aed95bcdf68ebd68d21b3e2590b41c Signed-off-by: David Pursehouse <david.pursehouse@sonymobile.com>tags/v4.2.0.201601211800-r
@@ -60,7 +60,9 @@ public class ConfigTest extends CLIRepositoryTestCase { | |||
@Before | |||
public void setUp() throws Exception { | |||
super.setUp(); | |||
new Git(db).commit().setMessage("initial commit").call(); | |||
try (Git git = new Git(db)) { | |||
git.commit().setMessage("initial commit").call(); | |||
} | |||
} | |||
@Test |