Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6700ba7

Browse files
committed
Appease AppVeyor
1 parent aa5c9d5 commit 6700ba7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/libgit2.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,14 @@ mktempdir() do dir
368368
LibGit2.GitRepo(path)
369369
error("unexpected")
370370
catch e
371+
if Base.LibGit2.version() < v"0.26.0"
372+
msg = "Failed to resolve path"
373+
else
374+
msg = "failed to resolve path"
375+
end
376+
371377
@test typeof(e) == LibGit2.GitError
372-
@test startswith(sprint(show,e),"GitError(Code:ENOTFOUND, Class:OS, failed to resolve path")
378+
@test startswith(sprint(show, e), "GitError(Code:ENOTFOUND, Class:OS, $msg")
373379
end
374380
path = joinpath(dir, "Example.BareTwo")
375381
repo = LibGit2.init(path, true)

0 commit comments

Comments
 (0)