Salome HOME
error if dev mode for product is incompatible with 'sub_dir' option
authorChristian Van Wambeke <christian.van-wambeke@cea.fr>
Wed, 18 Jul 2018 09:18:29 +0000 (11:18 +0200)
committerChristian Van Wambeke <christian.van-wambeke@cea.fr>
Wed, 18 Jul 2018 09:18:29 +0000 (11:18 +0200)
commands/source.py

index 83c037a03467924f8ef897e51b8b5d7ed0a83b73..f3066c4ac2ddfbf6fccfec115ea9c5b2ae382e8a 100644 (file)
@@ -110,6 +110,12 @@ def get_source_from_git(product_info,
     logger.write('\n', 5, False)
 
     sub_dir = None
+
+    # what do we do with git tree structure and history
+    if is_dev and "sub_dir" in product_info.git_info:
+        logger.error("dev mode for product is incompatible with 'sub_dir' option")
+        return False
+
     if not is_dev and "sub_dir" in product_info.git_info:
         sub_dir = product_info.git_info.sub_dir