Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nirvdrum/svn2git
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 133c22ff4d81caebdb4efc6f6cbcf96889920aa3
Choose a base ref
..
head repository: nirvdrum/svn2git
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d9e32a34e6f986070075881d6fea421b9ae199c3
Choose a head ref
Showing with 6 additions and 6 deletions.
  1. +1 −1 bin/svn2git
  2. +5 −5 lib/svn2git/migration.rb
2 changes: 1 addition & 1 deletion bin/svn2git
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
#!/usr/bin/ruby

# Copyright (c) 2008 James Coglan
#
10 changes: 5 additions & 5 deletions lib/svn2git/migration.rb
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@ def run!
ENV["LANGUAGE"]="en_US"
log "LANGUAGE is: #{ENV["LANGUAGE"]}\n"
end

if @options[:rebase]
get_branches
elsif @options[:rebasebranch]
@@ -379,7 +379,7 @@ def fix_branches
if @cannot_setup_tracking_information
run_command(Svn2Git::Migration.checkout_svn_branch(branch))
else
status = run_command("git branch --track \"#{branch}\" \"remotes/svn/#{branch}\"", false)
status = run_command("git branch \"#{branch}\" \"remotes/svn/#{branch}\"", false)

# As of git 1.8.3.2, tracking information cannot be set up for remote SVN branches:
# http://git.661346.n2.nabble.com/git-svn-Use-prefix-by-default-td7594288.html#a7597159
@@ -467,9 +467,9 @@ def run_command(cmd, exit_on_error=true, printout_output=false)
# nil is our cue to stop looping (pun intended).
break if user_reply.nil?

stdin.puts user_reply
stdin.close
rescue IOError
$stdin.puts user_reply
$stdin.close
rescue IOError
$stdout.print "No input requested.\n"
end
end