summaryrefslogtreecommitdiff
path: root/Omni/Agent/Git.hs
diff options
context:
space:
mode:
authorOmni Worker <bot@omni.agent>2025-11-21 05:24:19 -0500
committerOmni Worker <bot@omni.agent>2025-11-21 05:24:19 -0500
commit04f82d52994b409cfcca0dcf6afce609238fea01 (patch)
tree2c743671fcc4dff0b952f318ca6370e9555ac76b /Omni/Agent/Git.hs
parentc3ab8403df5e5ed99e6769dcdc152408d57026a7 (diff)
task: t-rWa5yilwM.2 done (Omni.Agent.Worker)
Amp-Thread-ID: https://ampcode.com/threads/T-7109f8d0-feb4-4a24-bc4b-37743227e2cb Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'Omni/Agent/Git.hs')
-rw-r--r--Omni/Agent/Git.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Omni/Agent/Git.hs b/Omni/Agent/Git.hs
index 7ee8a16..cf9a122 100644
--- a/Omni/Agent/Git.hs
+++ b/Omni/Agent/Git.hs
@@ -144,10 +144,10 @@ git dir args = do
syncWithLive :: FilePath -> IO ()
syncWithLive repo = do
Log.info ["git", "syncing with live"]
- git repo ["fetch", "origin", "live"]
-
+ -- git repo ["fetch", "origin", "live"] -- Optional
+
-- Try rebase, if fail, abort
- let cmd = (Process.proc "git" ["rebase", "origin/live"]) {Process.cwd = Just repo}
+ let cmd = (Process.proc "git" ["rebase", "live"]) {Process.cwd = Just repo}
(code, _, err) <- Process.readCreateProcessWithExitCode cmd ""
case code of
Exit.ExitSuccess -> pure ()