-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Agit workflow instructions do not work #27579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Currently, the default branch name is main. The docs should be updated. |
Backport #27621 by @lng2020 It's main now. relevant #27579 Co-authored-by: Nanguan Lin <[email protected]>
@strk Could you confirm git push origin HEAD:refs/for/main will fix your problem? The last word should be the base repository target branch name. |
In our case the base repository target branch is still "master", but I confirm try.osgeo.org does work if I push to the target repository. I've yet to test doing this on try.osgeo.org and ideed it works (as long as Is it supposed to also work when pushing to fork instead of target repository ? |
Pushing to fork will create a PR of the fork repository. In Agit workflow, there is no fork concept. |
So, I've tried back to git.osgeo.org/gitea and neither pushing refs/for/master (the real name of target) nor refs/for/main triggered the creation of a pull request. Rather those refs were created in the origin repository:
|
Do you mean try.gitea.io? So it works in try.gitea.io but doesn't work in your host, which is git.osgeo.org? |
@lng2020 exactly, at least not for this repository: https://git.osgeo.org/gitea/postgis/postgis -- feel free to try ! |
will look into it later |
One concern I have is that this support seems to imply anyone can create branches to the target repository effectively making the size associated to that repository bigger, how to limit that ? https://try.gitea.io/strk/test2/pulls/7#issuecomment-169018 |
I've filed #27652 doing ALSO this |
Consulting the source code I saw that "proc-receive" git hook is used for Agit, and that hook is only supported by git starting at version 2.29 -- on git.osgeo.org we're currently runnign an older version of git, which might explain the problem. |
I've added a note about 2.29 requirement in the docs too, in #27652 |
Clarify Agit PR creation documentation See #27579
Description
I've followed instructions in https://docs.gitea.com/usage/agit-setup but could not make a pull request automatically created.
Logs of Gitea also don't mention anything.
Gitea Version
1.20.5
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
The test I've run on try.gitea.io failed but in a different way:
Database
None
The text was updated successfully, but these errors were encountered: