Skip to content

git-obs staging should automatically fork the product unless the fork already exists #2055

@lkocman

Description

@lkocman

Is your feature request related to a problem? Please describe.
I'm using a dual account setup, where lkocman is used for daily obs usage and lkocman-factory is purely for staging work or anything requiring intentional that requires "superpowers" .

My initial test of git-obs staging failed because there was fork of products/PackageHub for lkocman-factory. Of course that didn't instantly kicked me as I do have the fork under lkocman which I commonly use in UI (while cli uses lkocman-factory). Also the error was not super explanatory.

Current result

...
From src.opensuse.org:products/PackageHub
 * [new ref]         refs/pull/455/head -> pull/455
Switched to branch 'pull/455'
ERROR: Cannot find a matching fork of products/PackageHub

Expected result
The tool should ensure that the fork exists in the first place. Or at least that would be my expectation

Full log

Using the following Gitea settings:
 * Config path: /home/lkocman/.config/tea/config.yml
 * Login (name of the entry in the config file): obs-lkocman-factory
 * URL: https://src.opensuse.org
 * User: lkocman-factory

Cloning into '/home/lkocman/git-obs-staging_sjafr3xc/products_PackageHub_460'...
remote: Enumerating objects: 286, done.
remote: Counting objects: 100% (286/286), done.
remote: Compressing objects: 100% (213/213), done.
remote: Total 286 (delta 154), reused 145 (delta 72), pack-reused 0 (from 0)
Receiving objects: 100% (286/286), 712.35 KiB | 13.70 MiB/s, done.
Resolving deltas: 100% (154/154), done.
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 10 (delta 6), reused 2 (delta 0), pack-reused 0 (from 0)
Unpacking objects: 100% (10/10), 33.87 KiB | 1.78 MiB/s, done.
From src.opensuse.org:products/PackageHub
 * [new ref]         refs/pull/460/head -> pull/460
Switched to branch 'pull/460'
Cloning into '/home/lkocman/git-obs-staging_sjafr3xc/products_PackageHub_459'...
remote: Enumerating objects: 286, done.
remote: Counting objects: 100% (286/286), done.
remote: Compressing objects: 100% (213/213), done.
remote: Total 286 (delta 155), reused 145 (delta 72), pack-reused 0 (from 0)
Receiving objects: 100% (286/286), 712.36 KiB | 12.72 MiB/s, done.
Resolving deltas: 100% (155/155), done.
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 10 (delta 6), reused 2 (delta 0), pack-reused 0 (from 0)
Unpacking objects: 100% (10/10), 33.87 KiB | 1.99 MiB/s, done.
From src.opensuse.org:products/PackageHub
 * [new ref]         refs/pull/459/head -> pull/459
Switched to branch 'pull/459'
Cloning into '/home/lkocman/git-obs-staging_sjafr3xc/products_PackageHub_458'...
remote: Enumerating objects: 286, done.
remote: Counting objects: 100% (286/286), done.
remote: Compressing objects: 100% (213/213), done.
remote: Total 286 (delta 155), reused 145 (delta 72), pack-reused 0 (from 0)
Receiving objects: 100% (286/286), 712.36 KiB | 15.16 MiB/s, done.
Resolving deltas: 100% (155/155), done.
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 10 (delta 6), reused 2 (delta 0), pack-reused 0 (from 0)
Unpacking objects: 100% (10/10), 33.87 KiB | 1.88 MiB/s, done.
From src.opensuse.org:products/PackageHub
 * [new ref]         refs/pull/458/head -> pull/458
Switched to branch 'pull/458'
Cloning into '/home/lkocman/git-obs-staging_sjafr3xc/products_PackageHub_457'...
remote: Enumerating objects: 286, done.
remote: Counting objects: 100% (286/286), done.
remote: Compressing objects: 100% (213/213), done.
remote: Total 286 (delta 155), reused 145 (delta 72), pack-reused 0 (from 0)
Receiving objects: 100% (286/286), 712.36 KiB | 16.19 MiB/s, done.
Resolving deltas: 100% (155/155), done.
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 10 (delta 6), reused 2 (delta 0), pack-reused 0 (from 0)
Unpacking objects: 100% (10/10), 33.87 KiB | 1.78 MiB/s, done.
From src.opensuse.org:products/PackageHub
 * [new ref]         refs/pull/457/head -> pull/457
Switched to branch 'pull/457'
Cloning into '/home/lkocman/git-obs-staging_sjafr3xc/products_PackageHub_456'...
remote: Enumerating objects: 286, done.
remote: Counting objects: 100% (286/286), done.
remote: Compressing objects: 100% (213/213), done.
remote: Total 286 (delta 154), reused 145 (delta 72), pack-reused 0 (from 0)
Receiving objects: 100% (286/286), 712.35 KiB | 15.83 MiB/s, done.
Resolving deltas: 100% (154/154), done.
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 10 (delta 6), reused 2 (delta 0), pack-reused 0 (from 0)
Unpacking objects: 100% (10/10), 33.87 KiB | 1.88 MiB/s, done.
From src.opensuse.org:products/PackageHub
 * [new ref]         refs/pull/456/head -> pull/456
Switched to branch 'pull/456'
Cloning into '/home/lkocman/git-obs-staging_sjafr3xc/products_PackageHub_455'...
remote: Enumerating objects: 286, done.
remote: Counting objects: 100% (286/286), done.
remote: Compressing objects: 100% (213/213), done.
remote: Total 286 (delta 155), reused 145 (delta 72), pack-reused 0 (from 0)
Receiving objects: 100% (286/286), 712.36 KiB | 16.19 MiB/s, done.
Resolving deltas: 100% (155/155), done.
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 10 (delta 6), reused 2 (delta 0), pack-reused 0 (from 0)
Unpacking objects: 100% (10/10), 33.88 KiB | 1.78 MiB/s, done.
From src.opensuse.org:products/PackageHub
 * [new ref]         refs/pull/455/head -> pull/455
Switched to branch 'pull/455'
ERROR: Cannot find a matching fork of products/PackageHub

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