-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Use configurable remote name for git commands #35172
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
Use configurable remote name for git commands #35172
Conversation
Maybe it should be a per repository setting but not a global one. |
I think we can get started with a global one, and then if needed, make it more precise. |
Even if you intend to add a global configuration, please store it in the database rather than in app.ini. |
Done! |
Does the title “Repository Snippets” in the configuration accurately reflect its purpose? It might be more appropriate under the Pull Request Settings section. |
This setting affects two pages at once:
Therefore, I would choose a more general name. I am open to any suggestions. |
…lya-nurullin/gitea into feat/custom-remote-in-snippets
But it is also for "templates/repo/issue/view_content/pull_merge_instruction.tmpl", it is a guide for end users to checkout the repo into their local clone. So I think |
* giteaofficial/main: Prevent duplicate actions email (go-gitea#35215) rename nightly docker tag for main branch (go-gitea#35344) Fix atom/rss mixed error (go-gitea#35345) Remove deprecated auth sources (go-gitea#35272) Always return the relevant status information, even if no status exists. (go-gitea#35335) [skip ci] Updated translations via Crowdin Upgrade mermaid from 11.9.0 to 11.10.0 (go-gitea#35329) Use configurable remote name for git commands (go-gitea#35172)
Closes #19403, and makes it possible to use any remote name in code snippets for an empty repository and pull request.
This change is very helpful to me, because I always use different name for my gitea remote.
Uses setting config module to store the value. Default is
origin
for backward compatibility.Screenshots
Empty repo
Pull Request
Settings page