From 2b42e87e7d2d4fdab7acbd03979235edd4bb0a75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fa=CC=81bio=20Madeira?= Date: Fri, 17 Nov 2017 15:09:27 +0000 Subject: [PATCH] Revert "Fix for when the push does not change any of the _built contents." This reverts commit 7ca62f3474c0441f567e41667193a00c22785e99. --- Rakefile | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Rakefile b/Rakefile index 079665edc..a661a494b 100644 --- a/Rakefile +++ b/Rakefile @@ -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}.'; @@ -82,4 +75,4 @@ namespace :site do puts "Pushed updated branch #{DESTINATION_BRANCH} to GitHub Pages" end end -end +end \ No newline at end of file