From: David Aguilar Date: Fri, 9 Dec 2016 08:58:46 +0000 (-0800) Subject: difftool: sanitize $workdir as early as possible X-Git-Tag: v2.11.1~39^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/e6e3e2a67c8dacb0ed726f09cf203568f24f8e74?hp=e6e3e2a67c8dacb0ed726f09cf203568f24f8e74 difftool: sanitize $workdir as early as possible The double-slash fixup on the $workdir variable was being performed just-in-time to avoid double-slashes in symlink targets, but the rest of the code was silently using paths with embedded "//" in them. A recent user-reported error message contained double-slashes. Eliminate the issue by sanitizing inputs as soon as they arrive. Signed-off-by: David Aguilar Signed-off-by: Junio C Hamano ---