features/step_definitions/scm_steps.rb in hudson-0.3.0.beta.4 vs features/step_definitions/scm_steps.rb in hudson-0.3.0.beta.5

- old
+ new

@@ -1,10 +1,12 @@ Given /^the project uses "git" scm$/ do repo = "git://some.host/drnic/ruby.git" in_project_folder do - %x[ git init ] - %x[ git add . ] - %x[ git commit -m "initial commit" ] - %x[ git remote add origin #{repo} ] + unless File.exist?(".git") + %x[ git init ] + %x[ git add . ] + %x[ git commit -m "initial commit" ] + %x[ git remote add origin #{repo} ] + end end end