fix: hook post-receive for sha256 repos
This commit is contained in:
parent
2ac3dcbd43
commit
5e73c67d67
8 changed files with 50 additions and 22 deletions
|
@ -329,7 +329,7 @@ func (repo *Repository) HTMLURL() string {
|
|||
// CommitLink make link to by commit full ID
|
||||
// note: won't check whether it's an right id
|
||||
func (repo *Repository) CommitLink(commitID string) (result string) {
|
||||
if git.IsEmptyCommitID(commitID) {
|
||||
if git.IsEmptyCommitID(commitID, nil) {
|
||||
result = ""
|
||||
} else {
|
||||
result = repo.Link() + "/commit/" + url.PathEscape(commitID)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue