Merge branch 'stable-2.12'

* stable-2.12:
  Update cookbook submodule
  MergeValidationListener: Expose the caller in onPreMerge() method
  Correctly detect symlinked log directory on startup
  RebaseIfNecessary: Use submitter identity as the committer
  Fix schema migration (115) when updating from Gerrit < 2.11
  Hide avatar image when there are no avatars available
  Add back ListChangesOption.DRAFT_COMMENTS

Change-Id: Ibaf1264332fdc30db0f0f548121db728f78927ae
This commit is contained in:
David Pursehouse
2016-01-08 15:21:28 +09:00
10 changed files with 114 additions and 59 deletions

View File

@@ -88,7 +88,9 @@ public class FileUtil {
public static Path mkdirsOrDie(Path p, String errMsg) {
try {
Files.createDirectories(p);
if (!Files.isDirectory(p)) {
Files.createDirectories(p);
}
return p;
} catch (IOException e) {
throw new Die(errMsg + ": " + p, e);