summaryrefslogtreecommitdiff
path: root/src/Job.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-04-13 19:43:30 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2025-04-15 20:22:16 +0200
commit364c3cf920ea3ba41af9f8e0a0a6a9efd0edbafa (patch)
tree55b8b7e944518611da5d37ee4a908933d3910676 /src/Job.hs
parent30e91608555839e3cb0113cdbd670e76d2d35508 (diff)
Use common checkout subdirectory in job ID
Diffstat (limited to 'src/Job.hs')
-rw-r--r--src/Job.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Job.hs b/src/Job.hs
index beed17d..61ddbb5 100644
--- a/src/Job.hs
+++ b/src/Job.hs
@@ -291,14 +291,14 @@ prepareJob dir mbCommit job inner = do
Just commit -> do
tree <- getCommitTree commit
forM_ (jobContainingCheckout job) $ \(JobCheckout mbsub dest) -> do
- subtree <- maybe return (getSubtree mbCommit) mbsub $ tree
+ subtree <- maybe return (getSubtree mbCommit . makeRelative (treeSubdir tree)) mbsub $ tree
checkoutAt subtree $ checkoutPath </> fromMaybe "" dest
Nothing -> do
when (not $ null $ jobContainingCheckout job) $ do
fail $ "no containing repository, can't do checkout"
forM_ (jobOtherCheckout job) $ \( tree, JobCheckout mbsub dest ) -> do
- subtree <- maybe return (getSubtree Nothing) mbsub $ tree
+ subtree <- maybe return (getSubtree Nothing . makeRelative (treeSubdir tree)) mbsub $ tree
checkoutAt subtree $ checkoutPath </> fromMaybe "" dest
let JobId jidParts = jobId job