Skip to content

Commit

Permalink
Add Git user
Browse files Browse the repository at this point in the history
  • Loading branch information
alagu committed Aug 26, 2013
1 parent 38482b6 commit bc919a0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/pagoda/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,6 @@ def update_post(params)

data = repo.commit_index log_message

data = `git commit -am "Testing for Travis"`

puts "*********Testing for Travis***************"
puts data
puts "******************************************"
Expand Down
9 changes: 9 additions & 0 deletions lib/pagoda/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,15 @@ def set_ssh_access
CONF
File.open('/app/.ssh/config', 'w+') { |f| f.write ssh_config }
end

if not File.exists? '/app/.gitconfig'
git_config = <<CONF
[user]
name = Pagoda Admin
email = pagoda-admin@github.com
CONF
File.open('/app/.gitconfig', 'w+') { |f| f.write git_config }
end
end
end
end

0 comments on commit bc919a0

Please sign in to comment.