Bad default commit message of file upload in root directory #3794

Closed
opened 2025-11-02 05:25:26 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @noerw on GitHub (Aug 15, 2019).

Description

Uploading a file and not entering a commit message results in a commit message like Uploaded files to '<dir>'.
When files are uploaded to the root directory, the content inside the quotes is empty.

Screenshots

image

Originally created by @noerw on GitHub (Aug 15, 2019). - Gitea version (or commit ref):1.9.1 - Git version: 2.21.0 - Operating system: fedora 30 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes https://try.gitea.io/norwin/test/src/branch/master/ - [ ] No - [ ] Not relevant - Log gist: ## Description Uploading a file and not entering a commit message results in a commit message like `Uploaded files to '<dir>'`. When files are uploaded to the root directory, the content inside the quotes is empty. ## Screenshots ![image](https://user-images.githubusercontent.com/7880552/63121826-e46e2700-bf94-11e9-9744-b7d6f0d1b97f.png)
GiteaMirror added the issue/confirmedtopic/uitype/bug labels 2025-11-02 05:25:26 -06:00
Author
Owner

@lafriks commented on GitHub (Aug 29, 2019):

any suggestions on what it should be?

@lafriks commented on GitHub (Aug 29, 2019): any suggestions on what it should be?
Author
Owner

@stale[bot] commented on GitHub (Oct 28, 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 (Oct 28, 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

@fnetX commented on GitHub (May 14, 2021):

Upload files to '/' sounds better. (Just generally adding a / before the var). Or, setting it to
Upload files to root (without quotes to differ from "root" dir), but this would probably require more than changing one line ...

@fnetX commented on GitHub (May 14, 2021): `Upload files to '/'` sounds better. (Just generally adding a / before the var). Or, setting it to `Upload files to root` (without quotes to differ from "root" dir), but this would probably require more than changing one line ...
Author
Owner

@zeripath commented on GitHub (May 14, 2021):

@fnetX that seems simplest. Fancy putting the fix in? It's likely a template issue.

@zeripath commented on GitHub (May 14, 2021): @fnetX that seems simplest. Fancy putting the fix in? It's likely a template issue.
Author
Owner

@fnetX commented on GitHub (May 15, 2021):

It's a translation thing.
editor.upload_files_to_dir = Upload files to '%s'
Should I somehow add the / to the string that is inserted there and hope it doesn't break, or update the locales? If the latter, how does this work? I've only been working as a translator so far, not as someone that changes the original string ...

@fnetX commented on GitHub (May 15, 2021): It's a translation thing. `editor.upload_files_to_dir = Upload files to '%s'` Should I somehow add the / to the string that is inserted there and hope it doesn't break, or update the locales? If the latter, how does this work? I've only been working as a translator so far, not as someone that changes the original string ...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3794