From f2c8237b87b4f4d946c32e9b67b8c0b17ef31bcd Mon Sep 17 00:00:00 2001 From: Ondrej Nosek Date: Apr 03 2019 22:04:26 +0000 Subject: Depth param for clone - tuning Revert argument '--no-single-branch'. It is not needed as per requestor. Cloning shallow copy of single branch (with argument '--branch') is sufficient. JIRA: COMPOSE-2812 Relates: #363 Signed-off-by: Ondrej Nosek --- diff --git a/pyrpkg/__init__.py b/pyrpkg/__init__.py index 9fca8e1..d692366 100644 --- a/pyrpkg/__init__.py +++ b/pyrpkg/__init__.py @@ -1506,9 +1506,7 @@ class Commands(object): if self.quiet: cmd.append('-q') if depth: - # argument '--depth' goes with '--no-single-branch' together - # to apply history truncation to all cloned branches - cmd.extend(['--depth', depth, "--no-single-branch"]) + cmd.extend(['--depth', depth]) # do the clone if branch and bare_dir: raise rpkgError('Cannot combine bare cloning with a branch')