Browse Source

Merge pull request #16 from PowerDNS/git-short-hash-prefix

short git hashes are a prefix, not a suffix
tags/v0.4.3
Russ Garrett 5 years ago
parent
commit
065f514992
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      httplistener/templates.go

+ 1
- 1
httplistener/templates.go View File

@@ -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…
Cancel
Save