mirror of
https://github.com/janet-lang/janet
synced 2025-05-25 02:34:12 +00:00
Fix jpm on windows with multiple git binaries.
This commit is contained in:
parent
b4f5e5bc00
commit
ee450bcd77
2
jpm
2
jpm
@ -688,7 +688,7 @@ int main(int argc, const char **argv) {
|
|||||||
(if stored-git-path (break stored-git-path))
|
(if stored-git-path (break stored-git-path))
|
||||||
(set stored-git-path
|
(set stored-git-path
|
||||||
(if is-win
|
(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"))))
|
(os/getenv "JANET_GIT" "git"))))
|
||||||
|
|
||||||
(defn uninstall
|
(defn uninstall
|
||||||
|
Loading…
x
Reference in New Issue
Block a user