diff --git a/cabal-install/src/Distribution/Client/VCS.hs b/cabal-install/src/Distribution/Client/VCS.hs index a2c5f449f3c..e9863c17c8b 100644 --- a/cabal-install/src/Distribution/Client/VCS.hs +++ b/cabal-install/src/Distribution/Client/VCS.hs @@ -634,10 +634,11 @@ vcsGit = cloneArgs = ["clone"] ++ depthIs1 - ++ [ "--no-checkout", loc, localDir] - ++ case peer of - Nothing -> [] - Just peerLocalDir -> ["--reference", peerLocalDir] + ++ ["--no-checkout", loc, localDir] + ++ ( case peer of + Nothing -> [] + Just peerLocalDir -> ["--reference", peerLocalDir] + ) ++ verboseArg where loc = srpLocation