From 3e0a4479be6c3e1c16f9339a71d336d6ad42c229 Mon Sep 17 00:00:00 2001 From: Rodrigo Mesquita Date: Fri, 13 Dec 2024 18:02:25 +0000 Subject: [PATCH] Fix verbosity of git The lack of parenthesis in this line meant that we'd only see the verbose output from git when we had a `peerLocalDir`. This should fix verbosity of git --- cabal-install/src/Distribution/Client/VCS.hs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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