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
+1 -1
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