Skip to content

Commit

Permalink
trying to address issue source-repository-package branch failure hask…
Browse files Browse the repository at this point in the history
  • Loading branch information
noinia committed Jul 27, 2023
1 parent 4aa5f88 commit 00f695a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cabal-install/src/Distribution/Client/VCS.hs
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,12 @@ vcsGit =
Nothing -> []
Just peerLocalDir -> ["--reference", peerLocalDir]
++ verboseArg
++ branchArg
where
loc = srpLocation
branchArg = case srpBranch of
Just b -> ["--branch", b]
Nothing -> []
resetArgs = "reset" : verboseArg ++ ["--hard", resetTarget, "--"]
resetTarget = fromMaybe "HEAD" (srpBranch `mplus` srpTag)
verboseArg = ["--quiet" | verbosity < Verbosity.normal]
Expand Down

0 comments on commit 00f695a

Please sign in to comment.