Poista turha --force gitPull funktiosta
Valitsin --force vaikuttaa git fetch -komennon toimintaan vain kun ylikirjoitetaan paikallisia kehityshaaroja, mitä gitPull komento ei tee.
This commit is contained in:
parent
2d5bec9a2d
commit
33c2269671
@ -21,7 +21,7 @@ import qualified Data.ByteString.Lazy as B
|
|||||||
|
|
||||||
gitPull :: FilePath -> IO ()
|
gitPull :: FilePath -> IO ()
|
||||||
gitPull repo = do
|
gitPull repo = do
|
||||||
(exit, err, _) <- runGitCommand repo "fetch" ["--force"]
|
(exit, err, _) <- runGitCommand repo "fetch" []
|
||||||
unless (exit == ExitSuccess) $ throwIO $ UnknownError $ "git-fetch failed: " <> err
|
unless (exit == ExitSuccess) $ throwIO $ UnknownError $ "git-fetch failed: " <> err
|
||||||
(exit', err', _) <- runGitCommand repo "reset" ["--hard","FETCH_HEAD"]
|
(exit', err', _) <- runGitCommand repo "reset" ["--hard","FETCH_HEAD"]
|
||||||
unless (exit' == ExitSuccess) $ throwIO $ UnknownError $ "git-reset failed: " <> err'
|
unless (exit' == ExitSuccess) $ throwIO $ UnknownError $ "git-reset failed: " <> err'
|
||||||
|
Loading…
Reference in New Issue
Block a user