mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-25 06:31:52 +00:00
During pull: reset repo before writing data
This commit is contained in:
parent
d284caf1db
commit
d07ecd2a1b
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue