chiark / gitweb /
quilt fixup: Check we can delete files with funny modes
[dgit.git] / tests / tests / unrepresentable
index 621829e1f0c64a5c39bc2b850be3374c695b426f..b2de45289396b2108ff978d5cf8898ef231266f4 100755 (executable)
@@ -25,9 +25,13 @@ badly-2 () {
        attempt
 }
 
-badly-1 symlink 'not a plain file'
-       ln -s TARGET symlink
-       git add symlink
+badly-1 orig-symlink 'modified symlink'
+       ln -sf NEWTARGET orig-symlink
+       git add orig-symlink
+badly-2
+
+badly-1 orig-symlink 'deletion of symlink'
+       git rm -f orig-symlink
 badly-2
 
 start
@@ -35,12 +39,18 @@ start
        git commit -m deleted
 attempt
 
-badly-1 src.c 'mode changed'
+start
+       git rm orig-exec
+       git rm -f orig-unwriteable
+       git commit -m 'deleted funny'
+attempt
+
+badly-1 src.c 'mode or type changed'
        chmod +x src.c
        git add src.c
 badly-2
 
-badly-1 new 'non-default mode'
+badly-1 new 'creation with non-default mode'
        echo hi >new
        chmod 755 new
        git add new