1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-24 06:03:17 +00:00

Fix jpm on windows with multiple git binaries.

This commit is contained in:
Calvin Rose 2020-07-21 13:40:23 -05:00
parent b4f5e5bc00
commit ee450bcd77

2
jpm
View File

@ -688,7 +688,7 @@ int main(int argc, const char **argv) {
(if stored-git-path (break stored-git-path))
(set stored-git-path
(if is-win
(or (os/getenv "JANET_GIT") (pslurp "where git"))
(or (os/getenv "JANET_GIT") (first (string/split "\n" (pslurp "where git"))))
(os/getenv "JANET_GIT" "git"))))
(defn uninstall