Skip to content
  • Johannes Schindelin's avatar
    mingw: handle GITPERLLIB in t0021 in a Windows-compatible way · 3306f652
    Johannes Schindelin authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Git's assumption that all path lists are colon-separated is not only
    wrong on Windows, it is not even an assumption that is compatible with
    POSIX.
    
    In the interest of time, let's not try to fix this properly but simply
    work around the obvious breakage on Windows, where the MSYS2 Bash used
    by Git for Windows to interpret the Git's Unix shell scripts will
    automagically convert path lists in the environment to
    semicolon-separated lists of Windows paths (with drive letter and the
    corresponding colon and all that jazz).
    
    In other words, we simply look whether there is a semicolon in
    GITPERLLIB and split by semicolons if found instead of colons. This is
    not fool-proof, of course, as the path list could consist of a single
    path. But that is not the case in Git for Windows' test suite, there are
    always two paths in GITPERLLIB.
    
    Signed-off-by: default avatarJohannes Schindelin <johannes.schindelin@gmx.de>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    3306f652