File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,19 @@ git init
1717# Commit
1818" $FIXTURES_DIR /commit.sh"
1919
20+ # Check if we are running on Windows with MINGW64 and if cygpath is available
21+ if [ -n " $MSYSTEM " ] && [ " $MSYSTEM " = " MINGW64" ]; then
22+ echo " Running inside MINGW64 trying to convert paths to Windows format."
23+ if command -v cygpath > /dev/null 2>&1 ; then
24+ # Convert the path to Windows format
25+ SCRIPT_DIR=$( cygpath -w " $SCRIPT_DIR " )
26+ FIXTURES_DIR=$( cygpath -w " $FIXTURES_DIR " )
27+ else
28+ echo " WARNING: cygpath command not found in the PATH. The script may not work correctly on Windows."
29+ exit 1
30+ fi
31+ fi
32+
2033# Show results
2134echo -e " \n---Run git-cliff---"
2235cargo run --manifest-path " $SCRIPT_DIR /../../Cargo.toml" -- -vv --config " $FIXTURES_DIR /cliff.toml" " ${@: 2} "
You can’t perform that action at this time.
0 commit comments