difftool: avoid double slashes in symlink targets
commite0976dcf83884fd0b48e90f0c62f50852e6971f6
authorJohn Keeping <john@keeping.me.uk>
Thu, 14 Mar 2013 20:19:40 +0000 (14 20:19 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Mar 2013 21:29:05 +0000 (14 14:29 -0700)
treeb46d2436505015c1a87b94206891a4b2c0ee1eec
parent8aa10d4a5bb2eceb78b689f0c13b334725a1019f
difftool: avoid double slashes in symlink targets

When we add tests for symlinks in "git difftool --dir-diff" it's easier
to check the target path if we don't have to worry about double slashes
separating directories.  Remove the trailing slash (if present) from
$workdir before creating the symlinks in order to avoid this.

Signed-off-by: John Keeping <john@keeping.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-difftool.perl