chiark / gitweb /
Improve "cannot represent change" message
[dgit.git] / tests / tests / unrepresentable
index 88a6972..5b3e139 100755 (executable)
@@ -21,7 +21,7 @@ badly-1 () {
 
 badly-2 () {
        git commit -m "Commit wrongness $wrongfn ($wrongmsg)"
-       t-expect-fail "cannot represent change: $wrongmsg: $wrongfn" \
+       t-expect-fail E:"cannot represent change: $wrongmsg .*: $wrongfn" \
        attempt
 }
 
@@ -30,9 +30,10 @@ badly-1 symlink 'not a plain file'
        git add symlink
 badly-2
 
-badly-1 src.c deleted
+start
        git rm src.c
-badly-2
+       git commit -m deleted
+attempt
 
 badly-1 src.c 'mode changed'
        chmod +x src.c