Skip to content

Commit

Permalink
Revert "Fix for when the push does not change any of the _built conte…
Browse files Browse the repository at this point in the history
…nts."

This reverts commit 7ca62f3.
  • Loading branch information
biomadeira committed Nov 17, 2017
1 parent f188835 commit 2b42e87
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Rakefile
Expand Up @@ -67,13 +67,6 @@ namespace :site do
sha = `git log`.match(/[a-z0-9]{40}/)[0]
Dir.chdir(CONFIG["destination"]) do
# check if there is anything to add and commit, and pushes it
# If there are no changes to the compiled out (e.g. this is a README update) then just bail.
sh
"if [ -z `git diff --exit-code` ]; then
echo "No changes to the output on this push; exiting."
exit 0
fi"

sh "if [ -n '$(git status)' ]; then
git add --all .;
git commit -m 'Updating to #{USERNAME}/#{REPO}@#{sha}.';
Expand All @@ -82,4 +75,4 @@ namespace :site do
puts "Pushed updated branch #{DESTINATION_BRANCH} to GitHub Pages"
end
end
end
end

0 comments on commit 2b42e87

Please sign in to comment.