aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTorgny Nyblom <nyblom@kde.org>2012-08-21 16:43:48 +0200
committerTorgny Nyblom <nyblom@kde.org>2012-08-21 16:43:48 +0200
commit2baedda2b06277544e3356670fd03e7e020d2abc (patch)
tree7b3b862bd268e7bd7aea00541b0d682a8c17a966
parentb46f9a8efb1799fc904150a4e2df4c055e29e8f7 (diff)
downloadsvn2git-2baedda2b06277544e3356670fd03e7e020d2abc.tar
svn2git-2baedda2b06277544e3356670fd03e7e020d2abc.tar.gz
svn2git-2baedda2b06277544e3356670fd03e7e020d2abc.tar.bz2
svn2git-2baedda2b06277544e3356670fd03e7e020d2abc.tar.xz
svn2git-2baedda2b06277544e3356670fd03e7e020d2abc.zip
Revert "Do not initialize master branch if branches were specified in the ruleset."
-rw-r--r--src/repository.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/repository.cpp b/src/repository.cpp
index 8f64c28..44ec629 100644
--- a/src/repository.cpp
+++ b/src/repository.cpp
@@ -72,9 +72,8 @@ Repository::Repository(const Rules::Repository &rule)
branches.insert(branchRule.name, branch);
}
- // create the default branch if no branches were manually specified
- if (rule.branches.length() == 0)
- branches["master"].created = 1;
+ // create the default branch
+ branches["master"].created = 1;
fastImport.setWorkingDirectory(name);
if (!CommandLineParser::instance()->contains("dry-run")) {