Skip to content

Commit

Permalink
add test for symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed Mar 6, 2017
1 parent 42493ae commit a3fab6b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/libgit2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,12 @@ mktempdir() do dir
id2 = LibGit2.commit(repo, "test property change 2")
LibGit2.checkout!(repo, string(id1))
@test !LibGit2.isdirty(repo)
mv(joinpath(test_repo, "proptest"), joinpath(test_repo, "proptest2"))
symlink(joinpath(test_repo, "proptest2"), joinpath(test_repo, "proptest"))
LibGit2.add!(repo, "proptest", "proptest2")
id3 = LibGit2.commit(repo, "test symlink change")
LibGit2.checkout!(repo, string(id1))
@test !LibGit2.isdirty(repo)
finally
close(repo)
end
Expand Down

0 comments on commit a3fab6b

Please sign in to comment.