Changing branch does not update files view #1359

Closed
opened 2025-11-02 03:57:46 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @mqudsi on GitHub (Dec 13, 2017).

Description

Changing the viewed branch to another updates the "last commit" snippet for the repository, but the file view and the "last changed in commit" information persists from master.

e.g.

https://try.gitea.io/mqudsi/futuretest/src/branch/rust-%2346606 and https://try.gitea.io/mqudsi/futuretest/src/branch/master both show the same files and file history in the file summary, but if you compare the actual files at each branch, you'll see they are different and have different "last commits": https://try.gitea.io/mqudsi/futuretest/src/branch/master/cargo.out vs https://try.gitea.io/mqudsi/futuretest/src/branch/rust-%2346606/cargo.out

Originally created by @mqudsi on GitHub (Dec 13, 2017). - Gitea version (or commit ref): 1.1.0+885-g9f033bf2 - Git version: n/a - Operating system: FreeBSD - Database (use `[x]`): - [ ] PostgreSQL - [X] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [X] Yes: https://try.gitea.io/mqudsi/futuretest/ - [ ] No - [ ] Not relevant - Log gist: ?? ## Description Changing the viewed branch to another updates the "last commit" snippet for the repository, but the file view and the "last changed in commit" information persists from `master`. e.g. https://try.gitea.io/mqudsi/futuretest/src/branch/rust-%2346606 and https://try.gitea.io/mqudsi/futuretest/src/branch/master both show the same files and file history in the file summary, but if you compare the actual files at each branch, you'll see they are different and have different "last commits": https://try.gitea.io/mqudsi/futuretest/src/branch/master/cargo.out vs https://try.gitea.io/mqudsi/futuretest/src/branch/rust-%2346606/cargo.out
GiteaMirror added the type/bug label 2025-11-02 03:57:47 -06:00
Author
Owner

@ethantkoenig commented on GitHub (Dec 15, 2017):

Seems related to, maybe even a duplicate of, #3202.

@ethantkoenig commented on GitHub (Dec 15, 2017): Seems related to, maybe even a duplicate of, #3202.
Author
Owner

@lunny commented on GitHub (Dec 9, 2018):

Since #3202 closed by #3240, I will close this one. Please feel free to reopen it.

@lunny commented on GitHub (Dec 9, 2018): Since #3202 closed by #3240, I will close this one. Please feel free to reopen it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1359