Skip to content

repo creation from command line in organization puts repo in personnal page #320

@arovai

Description

@arovai

Suppose I have created an organisation called arovaitestorga. I want to push some local repo to this organisation. The organization already exists but the repo doesn't exist on the organization page.

The repo is locally created in a standard way (gin init etc).

The name of the server is gingnode and corresponds to gin.g-node.org:

gin logout
gin add-server --web https://gin.g-node.org:443 --git git@gin.g-node.org:22 gingnode
gin use-server gingnode
gin login

Up to this point everything works well. Then I run:

gin add-remote origin gingnode:arovaitestorga/testorga

Output seems fine:

:: Checking remote: not found
Remote ssh://git@gin.g-node.org:22/arovaitestorga/testorga does not exist. Would you like to create it?
[c]reate / [a]dd anyway / a[b]ort: c
:: Creating repository 'arovaitestorga/testorga' OK
:: Added new remote: origin [ssh://git@gin.g-node.org:22/arovaitestorga/testorga]
:: Default remote: origin

In particular I am prompted to create a repo in the organisation page, which is exactly what I desire.

But then, when I check my organisation webpage, there is nothing new there. Moreover, a repo testorga has been created in arovai/testorga!

So somehow gin is pretending to create a repo in the organization but in fact does it in my personal repo page. In particular, running gin upload or gin sync produces errors (repo doesn't exist etc).

Is this a bug?

PS: easy workaround is to manually create empty repo in organization page. Then uploading/syncing works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions