aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'buildbot_gentoo_ci/db/repositorys.py')
-rw-r--r--buildbot_gentoo_ci/db/repositorys.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/buildbot_gentoo_ci/db/repositorys.py b/buildbot_gentoo_ci/db/repositorys.py
index 4d5d048..8fee1d3 100644
--- a/buildbot_gentoo_ci/db/repositorys.py
+++ b/buildbot_gentoo_ci/db/repositorys.py
@@ -15,7 +15,7 @@
# Copyright Buildbot Team Members
# Origins: buildbot.db.*
# Modifyed by Gentoo Authors.
-# Copyright 2021 Gentoo Authors
+# Copyright 2023 Gentoo Authors
import sqlalchemy as sa
@@ -101,6 +101,12 @@ class RepositorysConnectorComponent(base.DBConnectorComponent):
else:
sshprivatekey = row.sshprivatekey
sshhostkey = row.sshhostkey
+ if row.shallow == 0:
+ shallow = False
+ elif row.shallow == 1:
+ shallow = True
+ else:
+ shallow = row.shallow
return dict(
uuid=row.uuid,
name=row.name,
@@ -110,6 +116,7 @@ class RepositorysConnectorComponent(base.DBConnectorComponent):
branch=branch,
mode=row.mode,
method=row.method,
+ shallow=shallow,
alwaysuselatest=row.alwaysuselatest,
auto=row.auto,
enabled=row.enabled,