mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add more logging to commit action (#16)
This commit is contained in:
parent
cb2e12d3b0
commit
d143baf489
1 changed files with 4 additions and 0 deletions
|
@ -113,11 +113,15 @@ public class DataStore {
|
|||
Log.info("[{}] Writing commit", name);
|
||||
contents.write();
|
||||
Git git = new Git(repository);
|
||||
Log.info("[{}] Getting missing files", name);
|
||||
Set<String> missingFiles = git.status().call().getMissing();
|
||||
for (String missing : missingFiles) {
|
||||
Log.info("[{}] Git rm {}", name, missing);
|
||||
git.rm().setCached(true).addFilepattern(missing).call();
|
||||
}
|
||||
Log.info("[{}] Calling Git add", name);
|
||||
git.add().addFilepattern(".").call();
|
||||
Log.info("[{}] Calling Git commit", name);
|
||||
git.commit(
|
||||
).setAuthor(
|
||||
new PersonIdent(
|
||||
|
|
Loading…
Reference in a new issue