diff --git a/cook.sh b/cook.sh
index 55e6cafb89582462ae9fad2867d7ac618e290881..105c6b1010977a80f2ca2a981a6a23f010e5d9a0 100755
--- a/cook.sh
+++ b/cook.sh
@@ -122,6 +122,9 @@ function op {
                     if [ -n "$BRANCH" ]
                     then
                         git checkout "$BRANCH"
+                    else
+                        #TODO: Find correct upstream default branch
+                        git checkout master
                     fi
                     git pull
                     git submodule sync --recursive