Skip to content

Commit 2baedda

Browse files
committed
Revert "Do not initialize master branch if branches were specified in the ruleset."
This reverts commit 2ce7467.
1 parent b46f9a8 commit 2baedda

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/repository.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,8 @@ Repository::Repository(const Rules::Repository &rule)
7272
branches.insert(branchRule.name, branch);
7373
}
7474

75-
// create the default branch if no branches were manually specified
76-
if (rule.branches.length() == 0)
77-
branches["master"].created = 1;
75+
// create the default branch
76+
branches["master"].created = 1;
7877

7978
fastImport.setWorkingDirectory(name);
8079
if (!CommandLineParser::instance()->contains("dry-run")) {

0 commit comments

Comments
 (0)