diff options
author | Paul Talacko <gnuruandstuff@yahoo.co.uk> | 2008-09-06 18:50:38 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-06 18:58:59 -0700 |
commit | 7c4d0219cf9ab6a7738a09ad7fec72d5e9f2ac67 (patch) | |
tree | 68a6ffc8cb5f695db980ae4ceae34f8e26e25583 /t | |
parent | a786091b4a487bc08bbff4864717cf5d8383e983 (diff) | |
download | git-7c4d0219cf9ab6a7738a09ad7fec72d5e9f2ac67.tar.gz git-7c4d0219cf9ab6a7738a09ad7fec72d5e9f2ac67.tar.xz |
git-svn: set auto_props when renaming files
Patch-by: Paul Talacko <gnuruandstuff@yahoo.co.uk>:
<http://article.gmane.org/gmane.comp.version-control.git/95006>
> Hello,
>
> There's an issue in git-svn as autoprops are not applied to
> renamed files, only to added files.
>
> This patch fixes the bug.
[ew: added test case]
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 't')
-rwxr-xr-x | t/t9124-git-svn-dcommit-auto-props.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/t/t9124-git-svn-dcommit-auto-props.sh b/t/t9124-git-svn-dcommit-auto-props.sh index 54276bf11..31193a382 100755 --- a/t/t9124-git-svn-dcommit-auto-props.sh +++ b/t/t9124-git-svn-dcommit-auto-props.sh @@ -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 |