Skip to content

Commit

Permalink
Add "--recursive" to "stack upgrade --git"
Browse files Browse the repository at this point in the history
  • Loading branch information
mgsloan committed Jan 3, 2016
1 parent ecb056c commit 3068c9b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Stack/Upgrade.hs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ upgrade gitRepo mresolver builtHash =
return Nothing
else do
$logInfo "Cloning stack"
let args = [ "clone", repo , "stack", "--depth", "1"]
-- NOTE: "--recursive" was added after v1.0.0 (and before the
-- next release). This means that we can't use submodules in
-- the stack repo until we're comfortable with "stack upgrade
-- --git" not working for earlier versions.
let args = [ "clone", repo , "stack", "--depth", "1", "--recursive"]
runCmd (Cmd (Just tmp) "git" menv args) Nothing
return $ Just $ tmp </> $(mkRelDir "stack")
Nothing -> do
Expand Down

0 comments on commit 3068c9b

Please sign in to comment.