]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t4114-apply-typechange.sh
Merge branch 'fc/bash-completion-alias-of-alias'
[thirdparty/git.git] / t / t4114-apply-typechange.sh
index ebadbc347fc4fd9d435a366e46e3e1cebba81b83..da3e64f8110d54d7243c017a9a614baa7098142f 100755 (executable)
@@ -88,6 +88,13 @@ test_expect_success 'symlink becomes file' '
        '
 test_debug 'cat patch'
 
+test_expect_success 'symlink becomes file, in reverse' '
+       git checkout -f foo-symlinked-to-bar &&
+       git diff-tree -p HEAD foo-back-to-file > patch &&
+       git checkout foo-back-to-file &&
+       git apply -R --index < patch
+       '
+
 test_expect_success 'binary file becomes symlink' '
        git checkout -f foo-becomes-binary &&
        git diff-tree -p --binary HEAD foo-symlinked-to-bar > patch &&