]> asedeno.scripts.mit.edu Git - git.git/blobdiff - t/t9124-git-svn-dcommit-auto-props.sh
git-svn: set auto_props when renaming files
[git.git] / t / t9124-git-svn-dcommit-auto-props.sh
index 54276bf115222dca76d3879858db8bafe0618cdf..31193a382a728d39fbfd264593e22eb3fd2a27e1 100755 (executable)
@@ -81,4 +81,21 @@ test_expect_success 'check resulting svn repository' '
 )
 '
 
+test_expect_success 'check renamed file' '
+       test -d user &&
+       generate_auto_props yes > user/config &&
+       git mv foo foo.sh &&
+       git commit -m "foo => foo.sh" &&
+       git svn dcommit --config-dir=user &&
+       (
+               cd work/svnrepo &&
+               svn up &&
+               test ! -e foo &&
+               test -e foo.sh &&
+               test "x$(svn propget svn:mime-type foo.sh)" = \
+                    "xapplication/x-shellscript" &&
+               test "x$(svn propget svn:eol-style foo.sh)" = "xLF"
+       )
+'
+
 test_done