Fix recursion with digest String

Update check for equal references to call the String method

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
Derek McGowan 2017-01-20 11:38:07 -08:00
parent 56b712f454
commit 69bdac7eff
No known key found for this signature in database
GPG key ID: F58C5D0A4405ACDB
2 changed files with 16 additions and 9 deletions

View file

@ -399,7 +399,7 @@ func (r repository) Path() string {
type digestReference digest.Digest
func (d digestReference) String() string {
return d.String()
return digest.Digest(d).String()
}
func (d digestReference) Digest() digest.Digest {