Browse Source

DirCacheEditor: Fix formatting to avoid , at start of line

Change-Id: I1b1d614470c67fe4736fdc9c26ae26fb38dd58b5
tags/v4.2.0.201601211800-r
Shawn Pearce 8 years ago
parent
commit
110d3ca595

+ 5
- 3
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEditor.java View File

@@ -149,9 +149,11 @@ public class DirCacheEditor extends BaseDirCacheEditor {
if (missing) {
final DirCacheEntry ent = new DirCacheEntry(e.path);
e.apply(ent);
if (ent.getRawMode() == 0)
throw new IllegalArgumentException(MessageFormat.format(JGitText.get().fileModeNotSetForPath
, ent.getPathString()));
if (ent.getRawMode() == 0) {
throw new IllegalArgumentException(MessageFormat.format(
JGitText.get().fileModeNotSetForPath,
ent.getPathString()));
}
fastAdd(ent);
} else {
// Apply to all entries of the current path (different stages)

Loading…
Cancel
Save