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);
|
Log.info("[{}] Writing commit", name);
|
||||||
contents.write();
|
contents.write();
|
||||||
Git git = new Git(repository);
|
Git git = new Git(repository);
|
||||||
|
Log.info("[{}] Getting missing files", name);
|
||||||
Set<String> missingFiles = git.status().call().getMissing();
|
Set<String> missingFiles = git.status().call().getMissing();
|
||||||
for (String missing : missingFiles) {
|
for (String missing : missingFiles) {
|
||||||
|
Log.info("[{}] Git rm {}", name, missing);
|
||||||
git.rm().setCached(true).addFilepattern(missing).call();
|
git.rm().setCached(true).addFilepattern(missing).call();
|
||||||
}
|
}
|
||||||
|
Log.info("[{}] Calling Git add", name);
|
||||||
git.add().addFilepattern(".").call();
|
git.add().addFilepattern(".").call();
|
||||||
|
Log.info("[{}] Calling Git commit", name);
|
||||||
git.commit(
|
git.commit(
|
||||||
).setAuthor(
|
).setAuthor(
|
||||||
new PersonIdent(
|
new PersonIdent(
|
||||||
|
|
Loading…
Reference in a new issue