diff --git a/bin/subrepo_checkout.py b/bin/subrepo_checkout.py
index d6ac609189e58b6ab7cb2b12faa6e1af4477f199..e2a3e080ca44dc3fed887f4c1e416f9f1e767da7 100755
--- a/bin/subrepo_checkout.py
+++ b/bin/subrepo_checkout.py
@@ -41,7 +41,8 @@ def find_branchfile(directory, branchfile):
     
 def repo_checkout(directory, branch, branchfile):
     print(f"Checking out {directory} to branch {branch}")
-    os.system(f"cd {directory}; git checkout --recurse-submodules {branch}; git pull")
+    os.system(f"cd {directory}; git checkout --recurse-submodules {branch}")
+    os.system(f"cd {directory}; git pull")
     find_branchfile(directory, branchfile)
     
 if __name__ == "__main__":