Incorrect parameters for TortioseGitMerge if file path contains whitespaces

XMLWordPrintable

    • Type: Bug
    • Resolution: Obsolete
    • Priority: Medium
    • 3.0.17
    • Affects Version/s: 1.3.1
    • Component/s: Git
    • Environment:

      Win 8 x64 Pro, TortoiseGit 1.8.5.4

    • Severity 2 - Major

      0. Make sure "TortoiseMerge" is selected as a merge tool.
      1. Start doing a merge in SourceTree from another branch (Git is used).
      2. Right click on conflicted file - Resolve Conflicts - Launch external merge tool

      Bug: if a file path contains whitespaces, SourceTree uses incorrect escaping with quotation marks.
      Example of command line used:
      "c:\Program Files\TortoiseGit\bin\TortoiseGitMerge.exe" -"base:./mac/Disk/Disk/App Core/SomeFile.m.BASE.9944.m" -"mine:./mac/Disk/Disk/App Core/SomeFile.m.LOCAL.9944.m" -"theirs:./mac/Disk/Disk/App Core/SomeFile.m.REMOTE.9944.m" -"merged:mac/Disk/Disk/App Core/SomeFile.m"

      Expected: TortoiseGitMerge launched successfully. Correct command line:
      "c:\Program Files\TortoiseGit\bin\TortoiseGitMerge.exe" -base:"./mac/Disk/Disk/App Core/SomeFile.m.BASE.9944.m" -mine:"./mac/Disk/Disk/App Core/SomeFile.m.LOCAL.9944.m" -theirs:"./mac/Disk/Disk/App Core/SomeFile.m.REMOTE.9944.m" -merged:"mac/Disk/Disk/App Core/SomeFile.m"

            Assignee:
            Steve Streeting (Inactive)
            Reporter:
            Mykola Denysiuk
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: