Merge pull request #84 from Aupajo/fix/git-email-in-force-push

Fix Git user.email change in force push strategy
This commit is contained in:
Karl Freeman 2015-01-18 10:22:37 +00:00
commit 000cabda96

View file

@ -20,7 +20,7 @@ module Middleman
`git init` `git init`
`git remote add origin #{url}` `git remote add origin #{url}`
`git config user.name "#{self.user_name}"` `git config user.name "#{self.user_name}"`
`git config user.name "#{self.user_email}"` `git config user.email "#{self.user_email}"`
else else
# check if the remote repo has changed # check if the remote repo has changed
unless url == `git config --get remote.origin.url`.chop unless url == `git config --get remote.origin.url`.chop