Skip to content

Commit

Permalink
Merge pull request #4332 from mpilgrem/test
Browse files Browse the repository at this point in the history
Fix #3797 (Windows 10: re `git submodule` usage)
  • Loading branch information
mihaimaruseac authored Oct 2, 2018
2 parents a299ac6 + 61dae3c commit 19e4863
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions subs/pantry/src/Pantry/Repo.hs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ getRepo' repo@(Repo url commit repoType' subdir) pm =
withWorkingDir dir $ do
runCommand resetArgs
traverse_ runCommand submoduleArgs
-- On Windows 10, an upstream issue with the `git submodule` command means
-- that command clears, but does not then restore, the
-- ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for native terminals. The
-- folowing hack re-enables the lost ANSI-capability.
when osIsWindows $ void $ liftIO $ hSupportsANSIWithoutEmulation stdout
runCommand archiveArgs
abs' <- resolveFile' tarball
getArchive
Expand Down

0 comments on commit 19e4863

Please sign in to comment.