1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-14 15:27:41 +00:00

Add JANET_GIT to jpm.

This should allow work arounds for some windows installs.
Also, be clever about finding the location of te current git
executable on windows to avoid some path issues that seem to
occur on some windows installations.
This commit is contained in:
Calvin Rose
2020-05-19 18:36:58 -04:00
parent ccd8b71c4b
commit b72845609f
4 changed files with 25 additions and 6 deletions

View File

@@ -339,7 +339,7 @@ static Janet os_execute(int32_t argc, Janet *argv) {
JanetBuffer *buf = os_exec_escape(exargs);
if (buf->count > 8191) {
janet_panic("command line string too long");
janet_panic("command line string too long (max 8191 characters)");
}
const char *path = (const char *) janet_unwrap_string(exargs.items[0]);
char *cargv[2] = {(char *) buf->data, NULL};