if (message != null)
command.setWorkingDirectoryMessage(message);
command.setIncludeUntracked(includeUntracked);
commit = command.call();
} catch (JGitInternalException e) {
throw new TeamException(e.getLocalizedMessage(),
e.getCause());
} catch (GitAPIException e) {
throw new TeamException(e.getLocalizedMessage(),
e.getCause());
} finally {
if (commit != null)
repository.notifyIndexChanged();
pm.done();