mirror of
https://github.com/git/git.git
synced 2026-03-13 18:33:25 +01:00
mergetool: converting backslashes in kdiff3 path from Windows registry
Backslashes are converted to slashes right after the Windows registry returned a path. This is needed to avoid problems with shell expansion. Signed-off-by: Steffen Prohaska <prohaska@zib.de>
This commit is contained in:
committed by
Dmitry Kakurin
parent
56be985fe9
commit
65b356f555
@@ -323,7 +323,7 @@ if test -z "$merge_tool" ; then
|
||||
fi
|
||||
fi
|
||||
regentry="$(REG QUERY 'HKEY_LOCAL_MACHINE\SOFTWARE\KDiff3\diff-ext' 2>/dev/null)" && {
|
||||
KDIFF3=$(echo "$regentry" | grep diffcommand | cut -f 3)
|
||||
KDIFF3=$(echo "$regentry" | grep diffcommand | cut -f 3 | sed -e 's@\\@/@g')
|
||||
KDIFF3SEPARATOR=
|
||||
merge_tool_candidates="$merge_tool_candidates kdiff3"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user