Skip to content

Commit f27704f

Browse files
committed
More fixes
1 parent 78b847e commit f27704f

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

make

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,18 +96,21 @@ def merge_pages():
9696
print 'Files copied sucessfully'
9797

9898
print 'Switching to gh-pages...'
99-
git = subprocess.Popen(['git', 'checkout', 'gh-pages'],
99+
git = subprocess.Popen(['git', 'checkout gh-pages'],
100100
stdout=subprocess.PIPE)
101101

102-
print git.communicate()
103102
status = merge_git()
104103

105104
print 'Returning to master...'
106-
git = subprocess.Popen(['git', 'checkout', 'master'],
105+
git = subprocess.Popen(['git', 'checkout master'],
107106
stdout=subprocess.PIPE)
108107

109-
print git.communicate()
110-
return status
108+
if git.communicate()[0].strip() == 'Aborting':
109+
print 'ERROR: Automatic commit failed. Please commit to gh-pages manually'
110+
return 1
111+
112+
else:
113+
return status
111114

112115
else:
113116
print 'ERROR: Failed to remove old build directory'

0 commit comments

Comments
 (0)