[PR #98] [MERGED] Use the rev-parsed sha1 commit id #15146

Closed
opened 2025-11-02 11:39:54 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/98
Author: @odinuge
Created: 11/6/2016
Status: Merged
Merged: 11/6/2016
Merged by: @andreynering

Base: masterHead: abbrev-Sha1


📝 Commits (1)

  • 0962a07 Use the rev-parsed sha1 commit id

📊 Changes

1 file changed (+4 additions, -2 deletions)

View changed files

📝 routers/repo/commit.go (+4 -2)

📄 Description

Use the rev-parsed sha1 commit id in urls to repo files,
instead of the abbreved version.

Now, the urls to the repo-files contains the abbreviated version of the commits sha1sum, resulting in a 404, due to a lacking implementation of the route /:user/:repo/src/:sha/.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/98 **Author:** [@odinuge](https://github.com/odinuge) **Created:** 11/6/2016 **Status:** ✅ Merged **Merged:** 11/6/2016 **Merged by:** [@andreynering](https://github.com/andreynering) **Base:** `master` ← **Head:** `abbrev-Sha1` --- ### 📝 Commits (1) - [`0962a07`](https://github.com/go-gitea/gitea/commit/0962a074426435ba59ff840b3c0db1b858d9ae5d) Use the rev-parsed sha1 commit id ### 📊 Changes **1 file changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `routers/repo/commit.go` (+4 -2) </details> ### 📄 Description Use the rev-parsed sha1 commit id in urls to repo files, instead of the abbreved version. Now, the urls to the repo-files contains the abbreviated version of the commits sha1sum, resulting in a 404, due to a lacking implementation of the route `/:user/:repo/src/:sha/`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:39:54 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15146