on master help sign in
Add message for the git commit
commit3754b087e5fc817e6a7970b79fbb4757bda8893e authorSridhar Ratnakumar <srid@srid.ca> dateTue 15 May 2018, 21:23 (8 years ago) parentd90a966
1 file changed+5−4
lib/command/src/Obelisk/Command/Deploy.hs+5−4
lib/command/src/Obelisk/Command/Deploy.hs+5−4
@@ -95,10 +95,11 @@ deployPush deployPath = do
9595 deployAndSwitch res sshAgentEnv `finally` callProcess' (Just sshAgentEnv) "ssh-agent" ["-k"]
9696 isClean <- liftIO $ checkGitCleanStatus deployPath
9797 when (not isClean) $ do
98− callProcessAndLogOutput (Debug, Error) $ proc "git"
99− ["-C", deployPath, "add", "--update"]
100− callProcessAndLogOutput (Debug, Error) $ proc "git"
101− ["-C", deployPath, "commit", "-m", "New deployment"]
98+ withSpinner "Commiting changes to Git" $ do
99+ callProcessAndLogOutput (Debug, Error) $ proc "git"
100+ ["-C", deployPath, "add", "--update"]
101+ callProcessAndLogOutput (Debug, Error) $ proc "git"
102+ ["-C", deployPath, "commit", "-m", "New deployment"]
102103 where
103104 callProcess' e cmd args = do
104105 let p = (proc cmd args) { delegate_ctlc = True, env = e }