chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve "cannot represent change" message
[dgit.git]
/
tests
/
tests
/
unrepresentable
diff --git
a/tests/tests/unrepresentable
b/tests/tests/unrepresentable
index 88a697230e01ae088c91e98be2955fa18b489504..5b3e139387aacee13c5bb4af39a0a85f4a444518 100755
(executable)
--- a/
tests/tests/unrepresentable
+++ b/
tests/tests/unrepresentable
@@
-21,7
+21,7
@@
badly-1 () {
badly-2 () {
git commit -m "Commit wrongness $wrongfn ($wrongmsg)"
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
}
attempt
}
@@
-30,9
+30,10
@@
badly-1 symlink 'not a plain file'
git add symlink
badly-2
git add symlink
badly-2
-badly-1 src.c deleted
+start
git rm src.c
git rm src.c
-badly-2
+ git commit -m deleted
+attempt
badly-1 src.c 'mode changed'
chmod +x src.c
badly-1 src.c 'mode changed'
chmod +x src.c