#429 Depth param for clone
Merged by onosek. Opened by onosek.
onosek/rpkg clone_depth  into  master

Download 429.patch

Added '--depth' argument for 'git clone' command. It creates a shallow clone
with a history truncated to the specified number of commits. Additional
parameter '--no-single-branch' is added together with '--depth' to apply
history truncation to all cloned branches.

JIRA: COMPOSE-2812
Fixes: #363

Signed-off-by: Ondrej Nosek onosek@redhat.com

Is this needed? As I understand it, when cloning with branches, rpkg will do one clone from dist-git (via self.clone) to a local location, and then for each branch create a new clone from this local copy. So there should be no history to clone even without --depth, no?

argument has to be a number

rebased onto 39fc691a3030fd9b8eb353a00aa4711c50cd9cf9

rebased onto 94b381f9bd615250837d1bb803d6b7e3279d2429

Pull-Request has been merged by onosek

Metadata