lib/dev_commands.rb in dev-2.0.92 vs lib/dev_commands.rb in dev-2.0.93
- old
+ new
@@ -854,10 +854,12 @@
GIT_EXPORTS.each{|k,v|
directory = "#{Command.dev_root}/dep/#{k}"
if(!File.exists?(directory))
if(v.include?('@'))
add "git clone #{v.split('@')[0]} #{directory}"
- add "git reset --hard #{v.split('@')[1]}"
+ Dir.chdir(directory) do
+ add "git reset --hard #{v.split('@')[1]}"
+ end
else
add "git clone #{v} #{directory}"
end
end
}