Code

Fix path duplication in git svn commit-diff
authorKarl Hasselström <kha@treskal.com>
Sat, 17 May 2008 15:07:09 +0000 (17:07 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 1 Jun 2008 21:29:50 +0000 (14:29 -0700)
commitd72ab8c8921f74b64be029235d4d2cdd9dcb87b9
treeb337c77619b64114d468a1316f82fd29eda8c40a
parent5812473335161e3d8e5a1e085c5894a247472bdb
Fix path duplication in git svn commit-diff

Given an SVN repo file:///tmp/svntest/repo, trying to commit changes
to a file proj/trunk/foo.txt in that repo with this command line

  git svn commit-diff -r2 HEAD^ HEAD file:///tmp/svntest/repo/proj/trunk

gave the error message

  Filesystem has no item: File not found: transaction '2-6', path
  '/proj/trunk/proj/trunk/foo.txt'

This fixes the duplication.

Signed-off-by: Karl Hasselström <kha@treskal.com>
Acked-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-svn.perl