Make it possible to set mode when uploading through API #14701

Open
opened 2025-11-02 11:20:29 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @hramrach on GitHub (Jul 3, 2025).

Feature Description

https://docs.gitea.com/api/1.24/#tag/repository/operation/repoChangeFiles does not document an option to set file mode.

When uploading the same files over API and over SSH the mode differs.

Screenshots

No response

Originally created by @hramrach on GitHub (Jul 3, 2025). ### Feature Description https://docs.gitea.com/api/1.24/#tag/repository/operation/repoChangeFiles does not document an option to set file mode. When uploading the same files over API and over SSH the mode differs. ### Screenshots _No response_
GiteaMirror added the topic/apitype/proposal labels 2025-11-02 11:20:29 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Jul 4, 2025):

Agree, I also found the legacy code is very hacky, need to fix the FIXME, then this issue can be resolved.

Image

@wxiaoguang commented on GitHub (Jul 4, 2025): Agree, I also found the legacy code is very hacky, need to fix the FIXME, then this issue can be resolved. ![Image](https://github.com/user-attachments/assets/0f7c479e-06b0-4fd0-85b1-6c0b3e4b0481)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14701