Dangling commits show 'undefined' branch #3818

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

Originally created by @silverwind on GitHub (Aug 21, 2019).

Dangling commits created like

git commit --allow-empty -m "this is force-pushed over"
git push
git reset --hard HEAD~1
git push -f

show a undefined branch on the UI:

18b49740a6

I think they should not show a branch indicator at all.

Originally created by @silverwind on GitHub (Aug 21, 2019). Dangling commits created like ``` git commit --allow-empty -m "this is force-pushed over" git push git reset --hard HEAD~1 git push -f ``` show a `undefined` branch on the UI: https://try.gitea.io/silverwind/symlink-test/commit/18b49740a6d482078d0d7f8b8eaa2c9b28b32cd2 <img width="296" src="https://user-images.githubusercontent.com/115237/63421140-5ff22d00-c408-11e9-976d-4a666a1ca10c.png"> I think they should not show a branch indicator at all.
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 05:26:27 -06:00
Author
Owner

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

@lunny commented on GitHub (Jan 6, 2021):

I think this has been resolved?

@lunny commented on GitHub (Jan 6, 2021): I think this has been resolved?
Author
Owner

@zeripath commented on GitHub (Jan 6, 2021):

appears to be. Closing as fixed.

@zeripath commented on GitHub (Jan 6, 2021): appears to be. Closing as fixed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3818