Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/libgit2.jl
Original file line number Diff line number Diff line change
@@ -806,6 +806,10 @@ mktempdir() do dir
@test isfile(joinpath(test_repo, test_file))
@test new_head == head_oid

# GitAnnotated for a fetchhead
fh_ann = LibGit2.GitAnnotated(repo, LibGit2.Consts.FETCH_HEAD)
@test LibGit2.GitHash(fh_ann) == head_oid

# Detach HEAD - no merge
LibGit2.checkout!(repo, string(commit_oid3))
@test_throws LibGit2.Error.GitError LibGit2.merge!(repo, fastforward=true)

0 comments on commit de15be0

Please sign in to comment.