mirror of
https://gerrit.googlesource.com/git-repo
synced 2025-01-20 16:14:25 +00:00
project: using --depth results in error when including submanifests
Fix: https://issues.gerritcodereview.com/issues/40015442 Change-Id: I7fb6c50cf2e438b21181ce1a5893885f09b9ee2b Signed-off-by: Roberto Vladimir Prado Carranza <roberto.prado.c@gmail.com> Signed-off-by: Guillaume Micouin-Jorda <gmicouin@netcourrier.com> Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/385995 Commit-Queue: Mike Frysinger <vapier@google.com> Reviewed-by: Mike Frysinger <vapier@google.com> Reviewed-by: Jerome Couto <jerome.couto@renault.com>
This commit is contained in:
parent
c0aad7de18
commit
3d58d219cb
@ -3982,7 +3982,7 @@ class ManifestProject(MetaProject):
|
|||||||
@property
|
@property
|
||||||
def depth(self):
|
def depth(self):
|
||||||
"""Partial clone depth."""
|
"""Partial clone depth."""
|
||||||
return self.config.GetString("repo.depth")
|
return self.config.GetInt("repo.depth")
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def clone_filter(self):
|
def clone_filter(self):
|
||||||
|
@ -507,7 +507,10 @@ class ManifestPropertiesFetchedCorrectly(unittest.TestCase):
|
|||||||
self.assertFalse(fakeproj.partial_clone)
|
self.assertFalse(fakeproj.partial_clone)
|
||||||
|
|
||||||
fakeproj.config.SetString("repo.depth", "48")
|
fakeproj.config.SetString("repo.depth", "48")
|
||||||
self.assertEqual(fakeproj.depth, "48")
|
self.assertEqual(fakeproj.depth, 48)
|
||||||
|
|
||||||
|
fakeproj.config.SetString("repo.depth", "invalid_depth")
|
||||||
|
self.assertEqual(fakeproj.depth, None)
|
||||||
|
|
||||||
fakeproj.config.SetString("repo.clonefilter", "blob:limit=10M")
|
fakeproj.config.SetString("repo.clonefilter", "blob:limit=10M")
|
||||||
self.assertEqual(fakeproj.clone_filter, "blob:limit=10M")
|
self.assertEqual(fakeproj.clone_filter, "blob:limit=10M")
|
||||||
|
Loading…
Reference in New Issue
Block a user