Skip to content

Commit

Permalink
Fixed initial fetch of origin/gh-pages if it doesn't exist yet
Browse files Browse the repository at this point in the history
Fixes #33
  • Loading branch information
rmm5t committed Apr 13, 2016
1 parent e3d101e commit 9464046
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 @@ -39,7 +39,7 @@ file GH_PAGES_REF => BUILD_DIR do
cd BUILD_DIR do
sh "git init"
sh "git remote add #{remote_name} #{repo_url}"
sh "git fetch --depth 1 #{remote_name} #{branch_name}"
sh "git fetch --depth 1 #{remote_name}"

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

0 comments on commit 9464046

Please sign in to comment.