Browse Source

Merge "Ensure that NameRevCommand.call() closes RevWalk"

stable-4.1
Shawn Pearce 10 years ago committed by Gerrit Code Review @ Eclipse.org
parent
commit
6e1dc98672
  1. 4
      org.eclipse.jgit/src/org/eclipse/jgit/api/NameRevCommand.java

4
org.eclipse.jgit/src/org/eclipse/jgit/api/NameRevCommand.java

@ -185,11 +185,11 @@ public class NameRevCommand extends GitCommand<Map<ObjectId, String>> {
}
setCallable(false);
walk.release();
return result;
} catch (IOException e) {
walk.reset();
throw new JGitInternalException(e.getMessage(), e);
} finally {
walk.close();
}
}

Loading…
Cancel
Save