aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/repository.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/repository.cpp b/src/repository.cpp
index c51496b..e6c0f55 100644
--- a/src/repository.cpp
+++ b/src/repository.cpp
@@ -72,8 +72,9 @@ Repository::Repository(const Rules::Repository &rule)
branches.insert(branchRule.name, branch);
}
- // create the default branch
- branches["master"].created = 1;
+ // create the default branch if no branches were manually specified
+ if (rule.branches.length() == 0)
+ branches["master"].created = 1;
fastImport.setWorkingDirectory(name);
if (!CommandLineParser::instance()->contains("dry-run")) {