Merge "Fix replication of initial empty commit in new project"

This commit is contained in:
Shawn Pearce
2011-03-16 07:04:56 -07:00
committed by Android Code Review

View File

@@ -152,6 +152,8 @@ final class CreateProject extends BaseCommand {
repoManager.setProjectDescription(nameKey, projectDescription);
createProject();
rq.replicateNewProject(nameKey, branch);
if (createEmptyCommit) {
@@ -160,9 +162,9 @@ final class CreateProject extends BaseCommand {
} finally {
repo.close();
}
} else {
createProject();
}
createProject();
} catch (Exception e) {
p.print("Error when trying to create project: " + e.getMessage()
+ "\n");