pgm: Fix missing braces in MergeBase.run()
Change-Id: I625053ceb5a81bc0014f7cab0f9fb5e5deaacc36 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
parent
6c847b30c0
commit
c821054316
|
@ -70,14 +70,16 @@ void commit_0(final RevCommit c) {
|
|||
@Override
|
||||
protected void run() {
|
||||
try {
|
||||
for (RevCommit c : commits)
|
||||
for (RevCommit c : commits) {
|
||||
argWalk.markStart(c);
|
||||
}
|
||||
argWalk.setRevFilter(RevFilter.MERGE_BASE);
|
||||
int max = all ? Integer.MAX_VALUE : 1;
|
||||
while (max-- > 0) {
|
||||
final RevCommit b = argWalk.next();
|
||||
if (b == null)
|
||||
if (b == null) {
|
||||
break;
|
||||
}
|
||||
outw.println(b.getId().name());
|
||||
}
|
||||
} catch (IOException e) {
|
||||
|
|
Loading…
Reference in New Issue