gitea/templates
Ilya Nurullin e844a41248
Use configurable remote name for git commands (#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
<details>
<summary>Empty repo</summary>
<img width="791" height="398" alt="image"
src="https://github.com/user-attachments/assets/7214053d-a8dd-4e77-8c9d-78936d9859e0"
/>
</details>

<details>
<summary>Pull Request</summary>
<img width="591" height="452" alt="image"
src="https://github.com/user-attachments/assets/ebc3d25c-5d6d-481d-819d-9706af3c5594"
/>
</details>

<details>
<summary>Settings page</summary>
<img width="1438" height="839" alt="image"
src="https://github.com/user-attachments/assets/d92bfa2c-7adc-4efe-95fa-0c55ad13b3f5"
/>
</details>

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-08-21 10:14:35 -07:00
..
admin Use configurable remote name for git commands (#35172) 2025-08-21 10:14:35 -07:00
api/packages/pypi Fix links in PyPI Simple Repository API page (#30594) 2024-04-20 01:15:14 +00:00
base Merge index.js (#34963) 2025-07-06 04:55:16 +00:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
devtest Refactor mail template and support preview (#34990) 2025-07-09 10:25:25 +08:00
explore Forks repository list page follow other repositories page (#34784) 2025-06-21 12:27:25 -07:00
mail Send email on Workflow Run Success/Failure (#34982) 2025-07-15 18:54:31 -07:00
org Move organization's visibility change to danger zone. (#34814) 2025-08-20 20:57:42 -07:00
package Refactor packages (func name & UI) (#34773) 2025-06-18 19:04:24 +00:00
projects Improve project & label color picker and image scroll (#34971) 2025-07-06 23:37:26 +08:00
repo Use configurable remote name for git commands (#35172) 2025-08-21 10:14:35 -07:00
shared Refactor view issue & comment list styles (#35061) 2025-07-13 22:52:35 +08:00
status Enforce two-factor auth (2FA: TOTP or WebAuthn) (#34187) 2025-04-28 15:31:59 -07:00
swagger Add `has_code` to repository REST API (#35214) 2025-08-08 18:18:30 +02:00
user Send email on Workflow Run Success/Failure (#34982) 2025-07-15 18:54:31 -07:00
webhook Fix incorrect tailwind migration (#30007) 2024-03-22 20:51:29 +01:00
home.tmpl Misc CSS fixes (#34638) 2025-06-07 19:57:07 +02:00
install.tmpl Fix various trivial frontend problems (#34263) 2025-04-24 09:11:54 +08:00
post-install.tmpl Add post-installation redirect based on admin account status (#34493) 2025-06-21 18:48:06 +00:00