[Test Specs] Reset .git when Specs are set up

parent 73fcf0a4
...@@ -54,6 +54,7 @@ module SpecHelper ...@@ -54,6 +54,7 @@ module SpecHelper
origin = ROOT + 'spec/fixtures/spec-repos/test_repo/.' origin = ROOT + 'spec/fixtures/spec-repos/test_repo/.'
destination = tmp_repos_path + 'master' destination = tmp_repos_path + 'master'
FileUtils.cp_r(origin, destination) FileUtils.cp_r(origin, destination)
FileUtils.rm_r(destination + './.git')
repo_make('master') repo_make('master')
end end
...@@ -70,6 +71,7 @@ module SpecHelper ...@@ -70,6 +71,7 @@ module SpecHelper
origin = ROOT + 'spec/fixtures/spec-repos/test_repo/.' origin = ROOT + 'spec/fixtures/spec-repos/test_repo/.'
destination = tmp_repos_path + '../master' destination = tmp_repos_path + '../master'
FileUtils.cp_r(origin, destination) FileUtils.cp_r(origin, destination)
FileUtils.rm_r(destination + './.git')
repo_make('../master') repo_make('../master')
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment