diff options
Diffstat (limited to 'org.eclipse.jgit.iplog')
-rw-r--r-- | org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogMeta.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogMeta.java b/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogMeta.java index 372469da04..ba10f6f24e 100644 --- a/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogMeta.java +++ b/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogMeta.java @@ -62,6 +62,7 @@ import org.eclipse.jgit.lib.ObjectId; import org.eclipse.jgit.storage.file.FileBasedConfig; import org.eclipse.jgit.storage.file.LockFile; import org.eclipse.jgit.util.FS; +import org.eclipse.jgit.util.FileUtils; /** * Manages the {@code .eclipse_iplog} file in a project. @@ -187,8 +188,7 @@ public class IpLogMeta { */ public void syncCQs(File file, FS fs, URL base, String username, String password) throws IOException, ConfigInvalidException { - if (!file.getParentFile().exists()) - file.getParentFile().mkdirs(); + FileUtils.mkdirs(file.getParentFile(), true); LockFile lf = new LockFile(file, fs); if (!lf.lock()) |