Skip to content

Commit

Permalink
fix: Don't use --detached, fixes haskell#6888
Browse files Browse the repository at this point in the history
  • Loading branch information
elldritch committed Aug 14, 2020
1 parent 42e18f7 commit eb5a89a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cabal-install/src/Distribution/Client/VCS.hs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ vcsGit =
Just peerLocalDir -> ["--reference", peerLocalDir]
++ verboseArg
where loc = srpLocation
checkoutArgs = "checkout" : verboseArg ++ ["--detach", "--force"
checkoutArgs = "checkout" : verboseArg ++ ["--force"
, checkoutTarget, "--" ]
checkoutTarget = fromMaybe "HEAD" (srpBranch `mplus` srpTag)
verboseArg = [ "--quiet" | verbosity < Verbosity.normal ]
Expand Down

0 comments on commit eb5a89a

Please sign in to comment.