Skip to content

Commit 0498b68

Browse files
mbaschnitzitnyblom
authored andcommitted
Fix missing .gitignore in empty dirs on dir rename
The commandline option --empty-dirs now also has effect when a directory is moved in svn.
1 parent fcb62af commit 0498b68

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/svn.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,10 @@ int SvnRevision::exportInternal(const char *key, const svn_fs_path_change2_t *ch
930930

931931
if (dumpDirectory) {
932932
recursiveDumpDir(txn, fs, fs_root, key, path, pool, revnum, rule, matchRules, ruledebug, ignoreSet);
933+
934+
if (CommandLineParser::instance()->contains("empty-dirs")) {
935+
addGitIgnoreOnBranch(pool, key, path, fs_root, txn);
936+
}
933937
}
934938
}
935939

0 commit comments

Comments
 (0)