From 8ab1c16ebdb9c251ecae3bf691d15afd4ae52b01 Mon Sep 17 00:00:00 2001
From: Scott Lahteine <github@thinkyhead.com>
Date: Sat, 10 Nov 2018 01:31:22 -0600
Subject: [PATCH] Break out of 'mfpub' if 'gh-pages' checkout fails

---
 buildroot/share/git/mfpub | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/buildroot/share/git/mfpub b/buildroot/share/git/mfpub
index 1624053919..6885216a0b 100755
--- a/buildroot/share/git/mfpub
+++ b/buildroot/share/git/mfpub
@@ -110,7 +110,7 @@ git reset --hard
 git clean -d -f
 
 # Copy built-site into the gh-pages branch
-git checkout gh-pages
+git checkout gh-pages || { echo "Something went wrong!"; exit 1; }
 rsync -av ${TMPFOLDER}/ ./
 
 # Commit and push the new live site directly
-- 
GitLab