mirror of https://github.com/voidlizard/hbs2
code sweep + fixme/log
This commit is contained in:
parent
2bf65c3c70
commit
fadd913693
|
@ -343,4 +343,6 @@ fixme-del "2anS6WhycQ"
|
||||||
(fixme-set "workflow" "test" "5kY978Vrdx")
|
(fixme-set "workflow" "test" "5kY978Vrdx")
|
||||||
fixme-del "8Riz5xoHE7"
|
fixme-del "8Riz5xoHE7"
|
||||||
fixme-del "8qJW8BYV9A"
|
fixme-del "8qJW8BYV9A"
|
||||||
fixme-del "HFhJ2y4fFH"
|
fixme-del "HFhJ2y4fFH"
|
||||||
|
(fixme-set "workflow" "done" "98wKurRncg")
|
||||||
|
(fixme-set "workflow" "done" "98wKurRncg")
|
|
@ -106,10 +106,6 @@ loop args = do
|
||||||
--FIXME: git-fetch-second-time
|
--FIXME: git-fetch-second-time
|
||||||
-- Разобраться, почему git fetch срабатывает со второго раза
|
-- Разобраться, почему git fetch срабатывает со второго раза
|
||||||
|
|
||||||
-- FIXME: git-push-always-up-to-date
|
|
||||||
-- Разобраться, почему git push всегда говорит
|
|
||||||
-- , что всё up-to-date
|
|
||||||
|
|
||||||
checkRef <- readRef ref <&> isJust
|
checkRef <- readRef ref <&> isJust
|
||||||
|
|
||||||
unless checkRef do
|
unless checkRef do
|
||||||
|
@ -133,9 +129,6 @@ loop args = do
|
||||||
|
|
||||||
jobz <- liftIO newTQueueIO
|
jobz <- liftIO newTQueueIO
|
||||||
|
|
||||||
-- TODO: check-if-fetch-really-works
|
|
||||||
-- TODO: check-if-fetch-actually-works
|
|
||||||
|
|
||||||
jobNumT <- liftIO $ newTVarIO 0
|
jobNumT <- liftIO $ newTVarIO 0
|
||||||
liftIO $ atomically $ for_ hashes $ \o@(_,gh,_) -> do
|
liftIO $ atomically $ for_ hashes $ \o@(_,gh,_) -> do
|
||||||
unless (HashSet.member gh existed) do
|
unless (HashSet.member gh existed) do
|
||||||
|
@ -167,8 +160,6 @@ loop args = do
|
||||||
case cmd of
|
case cmd of
|
||||||
[] -> do
|
[] -> do
|
||||||
liftIO $ atomically $ writeTVar batch False
|
liftIO $ atomically $ writeTVar batch False
|
||||||
-- -- FIXME: wtf
|
|
||||||
-- when isBatch next
|
|
||||||
sendEol
|
sendEol
|
||||||
when isBatch next
|
when isBatch next
|
||||||
|
|
||||||
|
@ -206,12 +197,10 @@ loop args = do
|
||||||
next
|
next
|
||||||
|
|
||||||
["list","for-push"] -> do
|
["list","for-push"] -> do
|
||||||
-- FIXME: send-head-before-update
|
|
||||||
for_ (LBS.lines hdRefOld) (sendLn . LBS.toStrict)
|
for_ (LBS.lines hdRefOld) (sendLn . LBS.toStrict)
|
||||||
sendEol
|
sendEol
|
||||||
next
|
next
|
||||||
|
|
||||||
-- TODO: check-if-git-push-works
|
|
||||||
["fetch", sha1, x] -> do
|
["fetch", sha1, x] -> do
|
||||||
trace $ "fetch" <+> pretty (BS.unpack sha1) <+> pretty (BS.unpack x)
|
trace $ "fetch" <+> pretty (BS.unpack sha1) <+> pretty (BS.unpack x)
|
||||||
liftIO $ atomically $ writeTVar batch True
|
liftIO $ atomically $ writeTVar batch True
|
||||||
|
|
Loading…
Reference in New Issue