Skip to content
Snippets Groups Projects
Commit f08c3dbf authored by stuebinm's avatar stuebinm
Browse files

server: actually use git repository updates

before this, the server would fetch updates but then not update the
corresponding reference, leading to the initial state being checked out
and linted again.
parent 7e9941bf
Branches
No related tags found
No related merge requests found
...@@ -93,7 +93,7 @@ runJob offline config Job {..} done = do ...@@ -93,7 +93,7 @@ runJob offline config Job {..} done = do
True | offline -> logInfoN $ "offline mode: not updating " <> show gitdir True | offline -> logInfoN $ "offline mode: not updating " <> show gitdir
| otherwise -> | otherwise ->
(liftIO $ callgit gitdir (liftIO $ callgit gitdir
[ "fetch", "origin", toString ref, "--depth", "1" ]) [ "fetch", "origin", toString (ref <> ":" <> ref) ])
rev <- map T.strip -- git returns a newline here rev <- map T.strip -- git returns a newline here
$ readgit' gitdir ["rev-parse", toString ref] $ readgit' gitdir ["rev-parse", toString ref]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment