OSDN Git Service

Fix the order of clearing a satellite
authormurank <murank42@gmail.com>
Sun, 17 Mar 2013 14:50:20 +0000 (23:50 +0900)
committermurank <murank42@gmail.com>
Sun, 17 Mar 2013 14:50:20 +0000 (23:50 +0900)
lib/gitlab/satellite/satellite.rb

index e7f7a76..668de75 100644 (file)
@@ -24,8 +24,8 @@ module Gitlab
       def clear_and_update!
         raise_no_satellite unless exists?
 
-        delete_heads!
         clear_working_dir!
+        delete_heads!
         update_from_source!
       end