lib/spoom/test_helpers/project.rb in spoom-1.1.7 vs lib/spoom/test_helpers/project.rb in spoom-1.1.8
- old
+ new
@@ -60,12 +60,12 @@
end
# Actions
# Run `git init` in this project
- sig { void }
- def git_init
- Spoom::Git.exec("git init -q", path: path)
+ sig { params(branch: String).void }
+ def git_init(branch: "main")
+ Spoom::Git.exec("git init -q -b #{branch}", path: path)
Spoom::Git.exec("git config user.name 'spoom-tests'", path: path)
Spoom::Git.exec("git config user.email 'spoom@shopify.com'", path: path)
end
# Commit all new changes in this project