Skip to content

Commit

Permalink
Configure username and email for temp git repo.
Browse files Browse the repository at this point in the history
Git's auto-detection may fail on host where hostname is letters
only. This would trigger "Please tell me who you are." and cause the
deployment/setup to fail. So configure the user.name and user.email.
  • Loading branch information
jbraeuer committed Feb 10, 2015
1 parent f654891 commit 60f38e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scm_helper/libraries/archive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def prepare_archive_checkouts(scm_options)

execute 'create git repository' do
cwd "#{tmpdir}/archive.d"
command "find . -type d -name .git -exec rm -rf {} \\;; find . -type f -name .gitignore -exec rm -f {} \\;; git init; git add .; git commit -m 'Create temporary repository from downloaded contents.'"
command "find . -type d -name .git -exec rm -rf {} \\;; find . -type f -name .gitignore -exec rm -f {} \\;; git init; git add .; git config user.name 'AWS OpsWorks'; git config user.email 'root@localhost'; git commit -m 'Create temporary repository from downloaded contents.'"
end

"#{tmpdir}/archive.d"
Expand Down

0 comments on commit 60f38e5

Please sign in to comment.