We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d257d0e commit 2ce7467Copy full SHA for 2ce7467
src/repository.cpp
@@ -72,8 +72,9 @@ Repository::Repository(const Rules::Repository &rule)
72
branches.insert(branchRule.name, branch);
73
}
74
75
- // create the default branch
76
- branches["master"].created = 1;
+ // create the default branch if no branches were manually specified
+ if (rule.branches.length() == 0)
77
+ branches["master"].created = 1;
78
79
fastImport.setWorkingDirectory(name);
80
if (!CommandLineParser::instance()->contains("dry-run")) {
0 commit comments