diff --git a/cabal-install/src/Distribution/Client/VCS.hs b/cabal-install/src/Distribution/Client/VCS.hs index afd6dfea43c..a7356d85a3b 100644 --- a/cabal-install/src/Distribution/Client/VCS.hs +++ b/cabal-install/src/Distribution/Client/VCS.hs @@ -637,10 +637,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