Skip to content

Commit

Permalink
Removed conditional on git remote add
Browse files Browse the repository at this point in the history
`git init` will always initialize an origin, so it makes the check moot
  • Loading branch information
rmm5t committed Feb 16, 2016
1 parent 4bf5cb5 commit cf2f5c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleman-gh-pages/tasks/gh-pages.rake
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ file GH_PAGES_REF => BUILD_DIR do

cd BUILD_DIR do
sh "git init"
sh "git remote add #{remote_name} #{repo_url}" unless `git remote` =~ /#{remote_name}/
sh "git remote add #{remote_name} #{repo_url}"
sh "git fetch #{remote_name}"

if `git branch -r` =~ /#{branch_name}/
Expand Down

0 comments on commit cf2f5c8

Please sign in to comment.