Skip to content

osc fork should create a local checkout #1923

@glaubitz

Description

@glaubitz

I have just tried osc fork for the first time to integrate it into the git workflow.

I expected it to work a similar manner as osc bco which means:

  • creating a branch in my home project on the source repository server
  • checkout the sources locally

While the first part is implemented, the second part is missing:

glaubitz@suse-laptop:~/suse/git> osc fork devel:languages:python python-cloup
Using the following Gitea settings:
 * Config path: /home/glaubitz/.config/tea/config.yml
 * Login (name of the entry in the config file): glaubitz
 * URL: https://src.opensuse.org
 * User: glaubitz

Forking git repo pool/python-cloup ...
 * Fork created: glaubitz/python-cloup

Forking OBS package devel:languages:python/python-cloup ...
 * OBS apiurl: https://api.opensuse.org
 * Fork created: home:glaubitz:branches:devel:languages:python/python-cloup
 * scmsync URL: https://src.opensuse.org/glaubitz/python-cloup#factory
glaubitz@suse-laptop:~/suse/git> ls
grpc  libseccomp  oci-cli  python-oci-sdk
glaubitz@suse-laptop:~/suse/git>

A local checkout would be very useful as it avoids additional work with the web browser to perform the actual git clone command.

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