logging.info("Getting source for revision " + build['commit'])
vcs.gotorevision(build['commit'])
- # Check that a subdir (if we're using one) exists. This has to happen
- # after the checkout, since it might not exist elsewhere
- if not os.path.exists(root_dir):
- raise BuildException('Missing subdir ' + root_dir)
-
# Initialise submodules if requred
if build['submodules']:
logging.info("Initialising submodules")
vcs.initsubmodules()
+ # Check that a subdir (if we're using one) exists. This has to happen
+ # after the checkout, since it might not exist elsewhere
+ if not os.path.exists(root_dir):
+ raise BuildException('Missing subdir ' + root_dir)
+
# Run an init command if one is required
if 'init' in build:
cmd = replace_config_vars(build['init'])