We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1559ba commit d1d3848Copy full SHA for d1d3848
lib/svn2git/migration.rb
@@ -330,7 +330,14 @@ def fix_branches
330
svn_branches.delete_if { |b| b.strip !~ %r{^svn\/} }
331
332
if @options[:rebase]
333
- run_command("git svn fetch", true, true)
+ revision = @options[:revision]
334
+ cmd = "git svn fetch "
335
+ unless revision.nil?
336
+ range = revision.split(":")
337
+ range[1] = "HEAD" unless range[1]
338
+ cmd += "-r #{range[0]}:#{range[1]} "
339
+ end
340
+ run_command(cmd, true, true)
341
end
342
343
svn_branches.each do |branch|
0 commit comments