Skip to content

Commit 90f8b5a

Browse files
fetching specific commits (#593)
1 parent b48a3c1 commit 90f8b5a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CI.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,9 @@ buildDists ghcFlavor noGhcCheckout noBuilds versionSuffix = do
349349
system_ "cd ghc && git clean -xdf && git submodule foreach git clean -xdf && git submodule foreach git checkout . && git checkout ."
350350
else do
351351
system_ "git clone https://gitlab.haskell.org/ghc/ghc.git"
352-
system_ "cd ghc && git fetch --tags"
352+
case ghcFlavor of
353+
GhcMaster hash -> system_ ("cd ghc && git fetch origin" ++ " " ++ hash)
354+
_ -> system_ "cd ghc && git fetch origin --tags"
353355
gitCheckout ghcFlavor
354356
system_ "cd ghc && git checkout ."
355357

0 commit comments

Comments
 (0)