Gitea: setting ENABLE_PUSH_CREATE_ORG - appears to have no effect

Created on 28 Jul 2020  路  1Comment  路  Source: go-gitea/gitea

  • Gitea version (or commit ref): 1.12.2
  • Git version: 2.27.0
  • Operating system: NixOS
  • Database (use [x]):

    • [ ] PostgreSQL

    • [ ] MySQL

    • [ ] MSSQL

    • [x] SQLite

  • Can you reproduce the bug at https://try.gitea.io:

    • [ ] Yes (provide example URL)

    • [ ] No

    • [x] Not relevant

  • Log gist:

Description

Relevant part of the ini

[repository]
ENABLE_PUSH_CREATE_ORG  = true
ENABLE_PUSH_CREATE_USER = true

Now, let's try and auto-create org/repo on push

git remote add gitea-remote-new-org [email protected]:neworgname/reponame.git
git push -u --set-upstream gitea-remote-new-org master

Unfortunately, the result is

Unable to get owner: neworgname user does not exist [uid: 0, name: neworgname, keyid: 0]

However, this works:

git remote add gitea-remote-existing-org [email protected]:existingorgname/reponame.git
git remote add gitea-remote-existing-user [email protected]:existinguser/reponame.git
git push -u gitea-remote-existing-org master
git push -u gitea-remote-existing-user master

Imho, I miss knowledge/expertise, misunderstand the purpose of ENABLE_PUSH_CREATE or a bug has been discovered.
In case, the purpose of those switches are granular control, ie, already existing user/organization namespaces and absent repos, then this is likely a feature request.

Desired result - whatever is pushed to gitea should auto-create namespaces, provided the user has enough permissions.
Any advise/comment is much appreciated!

kinquestion

Most helpful comment

PUSH_CREATE_ORG allows you to create repositories for an existing organizations. It cannot just create organizations.

Similarly PUSH_CREATE_USER allows you to create repositories for existing users themselves.

>All comments

PUSH_CREATE_ORG allows you to create repositories for an existing organizations. It cannot just create organizations.

Similarly PUSH_CREATE_USER allows you to create repositories for existing users themselves.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

internalfx picture internalfx  路  3Comments

lunny picture lunny  路  3Comments

cookiengineer picture cookiengineer  路  3Comments

kifirkin picture kifirkin  路  3Comments

Fastidious picture Fastidious  路  3Comments