Skip to content

Commit 5c28230

Browse files
committed
fix fetching of MinGit
1 parent 0b8225b commit 5c28230

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/file.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ void fixWindowsEnv(std::string project_dir) {
158158
update = true;
159159
}
160160
if (update) {
161+
// first set the path
162+
putEnv("PATH", path);
163+
164+
// then fetch the embedded git
161165
const std::string mingit_dir = project_dir + "git";
162166
if (!project_dir.empty() && !isDir(mingit_dir)) {
163167
ensureDir(mingit_dir);
@@ -171,7 +175,6 @@ void fixWindowsEnv(std::string project_dir) {
171175
}
172176
std::remove(mingit_zip.c_str());
173177
}
174-
putEnv("PATH", path);
175178
}
176179
}
177180
#endif

0 commit comments

Comments
 (0)