Only tag submodules if allow_backtracking is False.
[invirt/packages/invirt-dev.git] / invirtibuilder
index 15b4e05..633563c 100755 (executable)
@@ -137,7 +137,7 @@ def tagSubmodule(pocket, package, ref, principal):
     I'm sure that long description gives you great confidence in the
     legitimacy of my reasoning.
     """
-    if config.build.pockets[pocket].get('allow_backtracking', False):
+    if not config.build.pockets[pocket].get('allow_backtracking', False):
         env = dict(os.environ)
         branch = b.pocketToGit(pocket)
         version = b.getVersion(package, ref)