Disable autoformatting users app.ini #2581

Closed
opened 2025-11-02 04:41:08 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @xoxys on GitHub (Nov 27, 2018).

  • Gitea version (or commit ref): 1.6.0
  • Git version:
  • Operating system: Linux
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

At gitea startup the custom app.ini will be auto-formatted to fix whitespaces and bring attributes to the same width. While this is nice if you manually administrate a gitea instance but it is a mess if working with a config management system like ansible or puppet. Every time the config management runs it detects a change in the local file and overrides. But the only changes are whitespacing...

Originally created by @xoxys on GitHub (Nov 27, 2018). - Gitea version (or commit ref): 1.6.0 - Git version: - Operating system: Linux - Database (use `[x]`): - [X] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [X] Not relevant ## Description At gitea startup the custom app.ini will be auto-formatted to fix whitespaces and bring attributes to the same width. While this is nice if you manually administrate a gitea instance but it is a mess if working with a config management system like ansible or puppet. Every time the config management runs it detects a change in the local file and overrides. But the only changes are whitespacing...
GiteaMirror added the issue/confirmedtype/enhancement labels 2025-11-02 04:41:08 -06:00
Author
Owner

@stale[bot] commented on GitHub (Jan 26, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 26, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@xoxys commented on GitHub (Jan 26, 2019):

Please dont close it

@xoxys commented on GitHub (Jan 26, 2019): Please dont close it
Author
Owner

@xoxys commented on GitHub (Feb 16, 2020):

That no longer seems to be correct. Gitea 1.11 does not format the custom config on startup. Close?

@xoxys commented on GitHub (Feb 16, 2020): That no longer seems to be correct. Gitea 1.11 does not format the custom config on startup. Close?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2581