Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No longer depend of external git user config #536

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 9 additions & 1 deletion spec/support/factories.cr
Expand Up @@ -16,8 +16,11 @@ end
def create_git_repository(project, *versions)
Dir.cd(tmp_path) do
run "git init #{Process.quote(project)}"
Dir.cd(Process.quote(project)) do
Dir.cd(git_path(project)) do
run "git checkout --orphan master"

run "git config user.email author@example.com"
run "git config user.name Author"
end
end

Expand All @@ -34,6 +37,11 @@ end
def create_fork_git_repository(project, upstream)
Dir.cd(tmp_path) do
run "git clone #{Process.quote(git_url(upstream))} #{Process.quote(project)}"

Dir.cd(git_path(project)) do
run "git config user.email fork@example.com"
run "git config user.name Fork"
end
end
end

Expand Down