Empty commits not visible in repo page #3458

Closed
opened 2025-11-02 05:13:27 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @silverwind on GitHub (Jun 12, 2019).

Empty commits created via git commit --allow-empty -m "empty commit" do not show up in the repo page in the commit box above the file list. Example:

Repo (Not OK)
Commit (OK)
Commits (OK)

Originally created by @silverwind on GitHub (Jun 12, 2019). Empty commits created via `git commit --allow-empty -m "empty commit"` do not show up in the repo page in the commit box above the file list. Example: [Repo](https://try.gitea.io/silverwind/symlink-test) (Not OK) [Commit](https://try.gitea.io/silverwind/symlink-test/commit/8e2cf0bbd561b4328cabcfe91639a4f1166abe1c) (OK) [Commits](https://try.gitea.io/silverwind/symlink-test/commits/branch/master) (OK)
GiteaMirror added the topic/ui label 2025-11-02 05:13:27 -06:00
Author
Owner

@silverwind commented on GitHub (Jul 14, 2019):

I think it applies to any commit with a message that does not render visible HTML. I did a XSS test via commit message, the commit is absent in the repo overview:

image

Edit: That commit had empty body, so likely that is the cause, not the message.

@silverwind commented on GitHub (Jul 14, 2019): I think it applies to any commit with a message that does not render visible HTML. I did a XSS test via commit message, the commit is absent in the repo overview: ![image](https://user-images.githubusercontent.com/115237/61180955-4991ce00-a61f-11e9-9a75-461bbe70dd46.png) Edit: That commit had empty body, so likely that is the cause, not the message.
Author
Owner

@filipnavara commented on GitHub (Jul 19, 2019):

I verified that GitHub shows these empty commits (https://github.com/filipnavara/test-maestro):

image

@filipnavara commented on GitHub (Jul 19, 2019): I verified that GitHub shows these empty commits (https://github.com/filipnavara/test-maestro): ![image](https://user-images.githubusercontent.com/1764393/61527211-336b7f80-aa1c-11e9-98b8-e09b1bc31211.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3458