Skip to content

Commit b46f9a8

Browse files
committed
Merge commit 'refs/merge-requests/13' of git://gitorious.org/svn2git/svn2git into merge-requests/13
2 parents 38a1db5 + 2ce7467 commit b46f9a8

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/repository.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,14 @@ Repository::Repository(const Rules::Repository &rule)
6767
{
6868
foreach (Rules::Repository::Branch branchRule, rule.branches) {
6969
Branch branch;
70-
branch.created = 0; // not created
70+
branch.created = 1;
7171

7272
branches.insert(branchRule.name, branch);
7373
}
7474

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

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

src/svn.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,9 @@ int SvnRevision::recurse(const char *path, const svn_fs_path_change_t *change,
821821
if(kind == svn_node_none) {
822822
qWarning() << "WARN: Trying to recurse using a nonexistant path" << path << ", ignoring";
823823
return EXIT_SUCCESS;
824+
} else if(kind != svn_node_dir) {
825+
qWarning() << "WARN: Trying to recurse using a non-directory path" << path << ", ignoring";
826+
return EXIT_SUCCESS;
824827
}
825828

826829
SVN_ERR(svn_fs_dir_entries(&entries, fs_root, path, pool));

0 commit comments

Comments
 (0)