lib/ohloh_scm/adapters/git/misc.rb in ohloh_scm-2.4.5 vs lib/ohloh_scm/adapters/git/misc.rb in ohloh_scm-2.4.6

- old
+ new

@@ -34,11 +34,11 @@ # but we need very high reliability and this sequence gets the job done every time. def checkout if FileTest.exist? git_path run "cd '#{url}' && git clean -f -d -x" if self.has_branch? - run "cd '#{url}' && git reset --hard heads/#{self.branch_name} --" run "cd '#{url}' && git checkout #{self.branch_name} --" + run "cd '#{url}' && git reset --hard heads/#{self.branch_name} --" end end end #---------------------------------------------------------------------------