lib/dev_git.rb in dev-2.0.67 vs lib/dev_git.rb in dev-2.0.68
- old
+ new
@@ -83,10 +83,11 @@
puts "tag #{tag} already exists."
else
Dir.chdir(source_dir) do
source_filelist.each{|f|
dest = tmp_dir + "/" + f
+ FileUtils.mkdir_p(File.dirname(dest)) if(!File.exists?(File.dirname(dest)))
FileUtils.cp(f,dest);
}
end
puts `git add -A`
puts `git commit -m"add"`
@@ -94,6 +95,9 @@
end
end
FileUtils.rm_r tmp_dir
end
+
+ # retrieve copy of specific files for a specific tag
+ # self.get source, tag, source_filelist, destination
end