From 8ee89f0ccb49ba6a2c3c0df5449c561ef59108cf 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cabal-install/src/Distribution/Client/VCS.hs b/cabal-install/src/Distribution/Client/VCS.hs index 41565586d95..ecca1637eb7 100644 --- a/cabal-install/src/Distribution/Client/VCS.hs +++ b/cabal-install/src/Distribution/Client/VCS.hs @@ -638,9 +638,9 @@ vcsGit = ["clone" ] ++ depthIs1 ++ [ "--no-checkout", loc, localDir] - ++ case peer of + ++ (case peer of Nothing -> [] - Just peerLocalDir -> ["--reference", peerLocalDir] + Just peerLocalDir -> ["--reference", peerLocalDir]) ++ verboseArg where loc = srpLocation