lib/apps/git.rb in dev-2.0.288 vs lib/apps/git.rb in dev-2.0.289

- old
+ new

@@ -147,17 +147,20 @@ end end def self.copy(src_url,src_directory,branch,target_directory,filelist) if(!File.exists?(src_directory)) + puts "git clone #{src_url} #{src_directory}" puts `git clone #{src_url} #{src_directory}` else Dir.chdir(src_directory) do + puts "git pull" puts `git pull` end end Dir.chdir(src_directory) do + puts "git checkout #{branch}" puts `git checkout #{branch}` filelist.each{|f| dest="#{target_directory}/#{f}" FileUtils.mkdir_p File.dirname(dest) if !File.exists? File.dirname(dest) puts "copying #{f} to #{dest}" \ No newline at end of file