aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorModestas Vainius <modestas@vainius.eu>2010-07-18 20:01:41 +0300
committerModestas Vainius <modestas@vainius.eu>2011-04-24 22:17:12 +0300
commit2ce7467917ef046dd9abfb1eb5464cd1ee7c7726 (patch)
tree48e2932ea4010c8c5e5c102f83785f5d2c9b1c9c
parentd257d0e911a18d2c248fc44328917ef209542a95 (diff)
downloadsvn2git-2ce7467917ef046dd9abfb1eb5464cd1ee7c7726.tar
svn2git-2ce7467917ef046dd9abfb1eb5464cd1ee7c7726.tar.gz
svn2git-2ce7467917ef046dd9abfb1eb5464cd1ee7c7726.tar.bz2
svn2git-2ce7467917ef046dd9abfb1eb5464cd1ee7c7726.tar.xz
svn2git-2ce7467917ef046dd9abfb1eb5464cd1ee7c7726.zip
Do not initialize master branch if branches were specified in the ruleset.
-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")) {