Skip to content

Commit 32d2cd5

Browse files
committed
Make sure to wait for the switch to complete
1 parent 6c93896 commit 32d2cd5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

make

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ def merge_pages():
102102
git = subprocess.Popen(['git', 'checkout', 'gh-pages'],
103103
stdout=subprocess.PIPE)
104104

105-
print get_branch()
105+
git.communicate()
106+
106107
if get_branch() != 'gh-pages':
107108
print 'ERROR: Failed to switch to gh-pages'
108109
return 1

0 commit comments

Comments
 (0)