Update libgit2 to df4dfaad

This commit is contained in:
Carlos Martín Nieto 2017-01-20 13:13:49 +00:00
parent f037074198
commit 9f4e0a46b6
2 changed files with 5 additions and 3 deletions

View File

@ -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,
)
}

2
vendor/libgit2 vendored

@ -1 +1 @@
Subproject commit ee89941fa2b861332defb5e3a8ce12c23c496ed7
Subproject commit df4dfaadcf709646ebab2e57e3589952cf1ac809