private String tryGetRevisionsDate(String revision) throws RevisionNotFoundException { try { return runner.run("git", "log", "--pretty=%ad", "--date=iso", revision, "-n", "1"); } catch (GradleException e) { if (isRevisionNotFoundMessage(revision, e)) { throw new RevisionNotFoundException(e, revision); } throw e; } }
private String tryGetRevisionsDate(String revision) throws RevisionNotFoundException { try { return runner.run("git", "log", "--pretty=%ad", "--date=iso", revision, "-n", "1"); } catch (GradleException e) { if (isRevisionNotFoundMessage(revision, e)) { throw new RevisionNotFoundException(e, revision); } throw e; } }