summaryrefslogtreecommitdiff
path: root/Test.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-01-06 16:14:51 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-01-06 16:14:51 -0400
commit1220fbfe7b9342c1e4f19f6b43c1019ccb56d7a8 (patch)
treec377eb4bd4c170c660d30b5559917577d4fe8eb4 /Test.hs
parentf2832babba9cf01679a183e8dfad8ab0e6643953 (diff)
fix test
have to change the content of unlocked file before committing otherwise git commit will fail in v6 mode when the file was already unlocked, because no changes have been made
Diffstat (limited to 'Test.hs')
-rw-r--r--Test.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Test.hs b/Test.hs
index 4d541da8e..e1c03d4c4 100644
--- a/Test.hs
+++ b/Test.hs
@@ -625,6 +625,7 @@ test_partial_commit = intmpclonerepoInDirect $ do
git_annex "get" [annexedfile] @? "get of file failed"
annexed_present annexedfile
git_annex "unlock" [annexedfile] @? "unlock failed"
+ changecontent annexedfile
ifM (annexeval Annex.Version.versionSupportsUnlockedPointers)
( boolSystem "git" [Param "commit", Param "-q", Param "-m", Param "test", File annexedfile]
@? "partial commit of unlocked file should be allowed in v6 repository"