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:
@@ -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};
|
||||
|
Reference in New Issue
Block a user