diff --git a/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/model/db/SQLiteWLDatabase.java b/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/model/db/SQLiteWLDatabase.java index ed83471f7c..6704153deb 100644 --- a/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/model/db/SQLiteWLDatabase.java +++ b/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/model/db/SQLiteWLDatabase.java @@ -91,6 +91,7 @@ public class SQLiteWLDatabase { public SQLiteWLDatabase(File rootGitDirectory) throws SQLException, ClassNotFoundException { this.rootGitDirectory = rootGitDirectory; File databaseFile = new File(rootGitDirectory, "/.wlgb/wlgb.db"); + databaseFile.getParentFile().mkdirs(); System.out.println("Loading data..."); Class.forName("org.sqlite.JDBC"); connection = DriverManager.getConnection("jdbc:sqlite:" + databaseFile.getAbsolutePath());