summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-01-31 12:17:37 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2023-02-14 09:39:02 +0000
commitbef34cb2139be3beedf3a1c11cdd664fea09b8ad (patch)
treeb4c27b432fbd6379237e55e31bc96614a854d714 /examples
parent49a1164ad3b146ec0030f17acbf9eebca8f2f4a0 (diff)
downloadlibgit2-bef34cb2139be3beedf3a1c11cdd664fea09b8ad.tar.gz
ci: convert PATH correctly to Cygwin format on Windows
We provide `BUILD_PATH` to our build script; provide it and mutate `PATH` when running our tests as well. We were previously using `cygpath` to try to convert a _list_ of Windows paths into cygwin / Unix style `PATH` format. This does not work -- it treats the path list as a single path (with semicolons -- understandably as those are allowed characters in a Windows path). For example, `C:\One;C:\Two;C:\Three` is converted to `/c/one;c:/two;c:/three`. Add a new function to convert path lists, so that paths are split by semicolon and fed to `cygpath` independently, then re-joined with a colon. This means that our example `C:\One;C:\Two;C:\Three` is correctly converted to `/c/one:/c/two:/c/three`.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions