on master help sign in
ob thunk unpack: Set remote when checking out a branch
commit1bfce658ff5f9211d435171971f80449e4cd7128 authorLuigy Leon <luigy@outlook.com> dateFri 11 May 2018, 15:11 (8 years ago) parent8e8ec1f
1 file changed+2
lib/command/src/Obelisk/Command/Thunk.hs+2
lib/command/src/Obelisk/Command/Thunk.hs+2
@@ -484,6 +484,8 @@ unpackThunk thunkDir = readThunk thunkDir >>= \case
484484 , pure $ Ref.toHexString $ _thunkRev_commit $ _thunkPtr_rev tptr
485485 ]
486486 callProcess "hub" checkoutOptions
487+ forM_ (_gitHubSource_branch s) $ \branch ->
488+ callProcess "hub" ["-C", tmpRepo, "branch", "-u", "origin/" <> T.unpack (untagName branch)]
487489 callProcess "rm"
488490 [ "-r"
489491 , thunkDir