mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-05-07 11:16:18 +02:00
Merge pull request #75 from tanacasino/fix/blob-view
Ensure display file content of specified commit
This commit is contained in:
@@ -213,7 +213,7 @@ trait RepositoryViewerControllerBase extends ControllerBase {
|
||||
case branch if(path == branch || path.startsWith(branch + "/")) => branch
|
||||
} orElse repository.tags.collectFirst {
|
||||
case tag if(path == tag.name || path.startsWith(tag.name + "/")) => tag.name
|
||||
} orElse Some(path) get
|
||||
} orElse Some(path.split("/")(0)) get
|
||||
|
||||
(id, path.substring(id.length).replaceFirst("^/", ""))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user