1 parent 4ec36a6 commit c0a773dCopy full SHA for c0a773d
1 file changed
src/Stack/PackageLocation.hs
@@ -213,7 +213,7 @@ cloneRepo projRoot url commit repoType' = do
213
]) runProcess_
214
created <- doesDirExist dir
215
unless created $ throwM $ FailedToCloneRepo commandName
216
- readProcessNull commandName
+ withWorkingDir dir $ readProcessNull commandName
217
(resetCommand ++ [T.unpack commit, "--"])
218
`catchAny` \case
219
ex -> do
0 commit comments