lib/dev_commands.rb in dev-2.0.89 vs lib/dev_commands.rb in dev-2.0.90

- old
+ new

@@ -847,9 +847,23 @@ add "svn export #{v} #{Command.dev_root}/dep/#{k}" if !dest.include?("@") add "svn export #{v} #{Command.dev_root}/dep/#{k}@" if dest.include?("@") end } end + + if(defined?(GIT_EXPORTS)) + GIT_EXPORTS.each{|k,v| + if(!File.exists?("#{Command.dev_root}/dep/#{k}")) + uri=v + if(v.include?('@')) + add "git clone #{v.split('@')[0]} #{k}" + add "git reset --hard #{v.split('@')[1]} #{k}" + else + add "git clone #{v} #{k}" + end + end + } + end end end class Tag < Array end