Skip to content

Commit 7b52a1c

Browse files
committed
Fix exclude arg (incorrectly quoted string)
The quote in the appended `--ignore-paths` cmd argument is in the wrong place. Also add the conventional space in case of additional future args.
1 parent 526df23 commit 7b52a1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/svn2git/migration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def clone!
228228
regex << "#{branches}[/][^/]+[/]" unless branches.nil?
229229
end
230230
regex = '^(?:' + regex.join('|') + ')(?:' + exclude.join('|') + ')'
231-
cmd += "'--ignore-paths=#{regex}'"
231+
cmd += "--ignore-paths='#{regex}' "
232232
end
233233
run_command(cmd, true, true)
234234

0 commit comments

Comments
 (0)