Commit 760f827ba0257d6664f429a832d1962fcac6e58e

Authored by Robert Speicher
1 parent fa340595

Remove code that does nothing

ping @karlhungus
lib/gitlab/satellite/satellite.rb
... ... @@ -24,7 +24,6 @@ module Gitlab
24 24 def clear_and_update!
25 25 raise SatelliteNotExistError unless exists?
26 26  
27   - File.exists? path
28 27 @repo = nil
29 28 clear_working_dir!
30 29 delete_heads!
... ...
spec/support/test_env.rb
... ... @@ -29,7 +29,6 @@ module TestEnv
29 29 disable_mailer if opts[:mailer] == false
30 30 setup_stubs
31 31  
32   -
33 32 clear_test_repo_dir if opts[:init_repos] == true
34 33 setup_test_repos(opts) if opts[:repos] == true
35 34 end
... ... @@ -165,8 +164,7 @@ module TestEnv
165 164  
166 165 def clear_test_repo_dir
167 166 setup_stubs
168   - # Use tmp dir for FS manipulations
169   - repos_path = testing_path()
  167 +
170 168 # Remove tmp/test-git-base-path
171 169 FileUtils.rm_rf Gitlab.config.gitlab_shell.repos_path
172 170  
... ...