Skip to content

Commit

Permalink
Disable LibGit2.push test with libgit2 <= 0.25.1
Browse files Browse the repository at this point in the history
Without our patch libgit2-remote-push-NULL, which is not yet included in
an upstream release, this test triggers an assertion failure.
Disable it so that builds using the system libgit2 can pass the tests.
  • Loading branch information
nalimilan committed May 14, 2017
1 parent 7a00007 commit ad6fd11
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/libgit2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -854,8 +854,10 @@ mktempdir() do dir
end
LibGit2.add!(our_repo, "file1")
LibGit2.commit(our_repo, "add file1")
# we cannot yet locally push to non-bare repos
@test_throws LibGit2.GitError LibGit2.push(our_repo, remoteurl=up_path)
if LibGit2.version() >= v"0.26.0" # See #21639 and #21597
# we cannot yet locally push to non-bare repos
@test_throws LibGit2.GitError LibGit2.push(our_repo, remoteurl=up_path)
end
finally
close(our_repo)
close(up_repo)
Expand Down

0 comments on commit ad6fd11

Please sign in to comment.