소스 검색

short git hashes are a prefix, not a suffix

tags/v0.4.3
Peter van Dijk 5 년 전
부모
커밋
07e3e5c835
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      httplistener/templates.go

+ 1
- 1
httplistener/templates.go 파일 보기

@@ -39,7 +39,7 @@ func truncateSha(sha string) string {
39 39
 	if len(sha) < 8 {
40 40
 		return ""
41 41
 	}
42
-	return sha[len(sha)-7:]
42
+	return sha[:8]
43 43
 }
44 44
 
45 45
 // Colour helper functions to try and declutter

Loading…
취소
저장