During pull: reset repo before writing data

This commit is contained in:
Shane Kilkelly 2020-09-23 11:38:22 +01:00
parent d284caf1db
commit d07ecd2a1b

View file

@ -240,6 +240,7 @@ public class GitProjectRepo implements ProjectRepo {
) throws IOException, GitAPIException {
Preconditions.checkState(repository.isPresent());
Repository repo = getJGitRepository();
resetHard();
String name = getProjectName();
Log.info("[{}] Writing commit", name);
contents.write();