diff --git a/describe_test.go b/describe_test.go index f0a45f4..3181f23 100644 --- a/describe_test.go +++ b/describe_test.go @@ -93,14 +93,16 @@ func TestDescribeCommit(t *testing.T) { func checkDescribeNoRefsFound(t *testing.T, err error) { // The failure happens at wherever we were called, not here _, file, line, ok := runtime.Caller(1) + expectedString := "no reference found, cannot describe anything" if !ok { t.Fatalf("Unable to get caller") } - if err == nil || !strings.Contains(err.Error(), "No reference found, cannot describe anything") { + if err == nil || !strings.Contains(err.Error(), expectedString) { t.Fatalf( - "%s:%v: was expecting error 'No reference found, cannot describe anything', got %v", + "%s:%v: was expecting error %v, got %v", path.Base(file), line, + expectedString, err, ) } diff --git a/vendor/libgit2 b/vendor/libgit2 index ee89941..df4dfaa 160000 --- a/vendor/libgit2 +++ b/vendor/libgit2 @@ -1 +1 @@ -Subproject commit ee89941fa2b861332defb5e3a8ce12c23c496ed7 +Subproject commit df4dfaadcf709646ebab2e57e3589952cf1ac809