#433 Depth param for clone - tuning
Merged 5 years ago by onosek. Opened 5 years ago by onosek.
onosek/rpkg clone_depth_2  into  master

file modified
+1 -3
@@ -1506,9 +1506,7 @@ 

          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')

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 onosek@redhat.com

Pull-Request has been merged by onosek

5 years ago