0
+# Import an SVN repository into an SVN working copy.
0
+require File.dirname(__FILE__) + "/common"
0
+@root = @root + "tmp/git_git"
0
+@root.rmtree rescue nil
0
+@tmp = @root + "plugin.tmp"
0
+@plugin = @root + "plugin"
0
+File.open(@plugin + "README", "wb") {|f| f.puts "Hello World"}
0
+File.open(@plugin + "init.rb", "wb") {|f| f.puts "# Some init code"}
0
+ git :commit, "-m", "initial commit"
0
+File.open(@wc + "README", "wb") {|f| f.puts "My local project"}
0
+ git :commit, "-m", "initial commit"
0
+repos = Piston::Git::Repository.new("file://" + @plugin.realpath)
0
+commit = repos.at(:head)
0
+commit.checkout_to(@tmp)
0
+wc = Piston::Git::WorkingCopy.new(@wc + "vendor")
0
+wc.remember(commit.remember_values)
Comments
No one has commented yet.