Skip to content

Commit 291e663

Browse files
committed
Add email to git config
This fixes the error 'unable to auto-detect email address' when trying to commit.
1 parent f030835 commit 291e663

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

example_app/github_repo_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def shell_create_and_push_commit(repo_credentials, application_name)
9090
commands = [
9191
"cd #{temp_dir}; GIT_SSH=#{git_ssh_script} git clone #{repo_ssh_url} 2>&1",
9292
"cd #{temp_dir}/#{repo_name} && git config user.name '#{application_name}' 2>&1",
93+
"cd #{temp_dir}/#{repo_name} && git config user.email '#{application_name}@example.com' 2>&1",
9394
"cd #{temp_dir}/#{repo_name} && git commit --allow-empty -m 'auto generated empty commit' 2>&1",
9495
"cd #{temp_dir}/#{repo_name} && git log --pretty=format:\"%h%x09%ad%x09%s\" 2>&1",
9596
"cd #{temp_dir}/#{repo_name}; GIT_SSH=#{git_ssh_script} git push origin master 2>&1"

0 commit comments

Comments
 (0)