Add more logging to commit action (#16)

This commit is contained in:
Marc Egea i Sala 2016-06-09 10:26:22 +01:00 committed by Timothée Alby
parent cb2e12d3b0
commit d143baf489

View file

@ -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(