repo_git = product_info.git_info.repo_dev
else:
repo_git = product_info.git_info.repo
-
+
# Display informations
logger.write('%s:%s' % (coflag, src.printcolors.printcInfo(repo_git)), 3,
logger.flush()
logger.write('\n', 5, False)
+ git_options= ''
+ if is_dev and "git_options" in product_info.git_info:
+ git_options = product_info.git_info.git_options
sub_dir = None
# what do we do with git tree structure and history
if sub_dir is None:
# Call the system function that do the extraction in git mode
retcode = src.system.git_extract(repo_git,
- product_info.git_info.tag,
+ product_info.git_info.tag,git_options,
source_dir, logger, environ)
else:
# Call the system function that do the extraction of a sub_dir in git mode
logger.write("sub_dir:%s " % sub_dir, 3)
retcode = src.system.git_extract_sub_dir(repo_git,
- product_info.git_info.tag,
+ product_info.git_info.tag,git_options,
source_dir, sub_dir, logger, environ)