Skip to content

osc co scm_disturl does whole clone instead of shallow clone #1644

@thackara

Description

@thackara

Describe the bug

  1. for scmsync enabled projects,
    osc co -r $rev $prj $pkg -o directory, does a whole clone instead of a shallow clone.
    -> OSC_VERSION is set in the script (which also sets the following in obs_scm_bridge, get_assets = True, shallow_clone = False), hence the whole clone.

  2. also when out directory (-o directory) is provided, the following error is observed,
    Error: "CWD/$prj" is not an osc working copy.

Versions

  • Operating system: openSUSE Tumbleweed
  • Packages: osc-1.9.2

To Reproduce
Steps to reproduce the behavior:

  1. osc co <scm_disturl>

Expected behavior

  1. Shallow clone with osc co <scm_disturl>

Screenshots, console outputs
If applicable, add screenshots or console outputs to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions