Skip to content

Commit 3d00f65

Browse files
committed
check for the git file
1 parent 93741bc commit 3d00f65

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/main/java/com/neuronrobotics/bowlerstudio/BowlerKernel.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,16 @@ public static void ensureUpdated(boolean check,String ... urls) {
8383
if(s==null)
8484
continue;
8585
try {
86-
File wd = ScriptingEngine.getRepositoryCloneDirectory(s);
86+
File wd = new File(ScriptingEngine.getRepositoryCloneDirectory(s).getAbsolutePath()+"/.git");
8787
if(check && wd.exists()) {
8888
Log.error("Skipping update, clone exists "+s);
8989
continue;
9090
}
91-
Log.debug("Pulling "+s);
91+
Log.debug("Cloning "+s);
9292
ScriptingEngine.cloneRepo(s, null);
9393
ScriptingEngine.pull(s);
9494
} catch (Throwable e) {
95-
// Auto-generated catch block
96-
e.printStackTrace();
97-
//ScriptingEngine.deleteRepo(s);
98-
//ScriptingEngine.cloneRepo(s, null);
95+
Log.error(e);
9996
}
10097
}
10198
}

0 commit comments

Comments
 (0)