hercules-ci-cli 0.2.3 → 0.2.4
raw patch · 3 files changed
+15/−2 lines, 3 files
Files
- CHANGELOG.md +11/−0
- hercules-ci-cli.cabal +1/−1
- src/Hercules/CLI/Git.hs +3/−1
CHANGELOG.md view
@@ -5,6 +5,17 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## 0.2.4 - 2021-11-17++### Added++ - Improved error message when git upstream is not found++### Changed++ - The flake packages and modules now link with Nix 2.4.+ Nix 2.3 support is still available via `packages.${system}.hercules-ci-cli-nix_2_3`, but will be removed in cli 0.3.x.+ ## 0.2.3 - 2021-10-12 ### Fixed
hercules-ci-cli.cabal view
@@ -1,7 +1,7 @@ cabal-version: 1.12 name: hercules-ci-cli-version: 0.2.3+version: 0.2.4 synopsis: The hci command for working with Hercules CI homepage: https://docs.hercules-ci.com bug-reports: https://github.com/hercules-ci/hercules-ci-agent/issues
src/Hercules/CLI/Git.hs view
@@ -73,7 +73,9 @@ getBranchUpstream :: IO Text getBranchUpstream = do- upstreamRef <- readProcessString "git" ["rev-parse", "--symbolic-full-name", "@{u}"] mempty+ upstreamRef <-+ readProcessString "git" ["rev-parse", "--symbolic-full-name", "@{u}"] mempty+ `onException` putErrText "hci: could not determine current branch's upstream" let refsRemotes = "refs/remotes/" if refsRemotes `isPrefixOf` upstreamRef then pure $ toS $ takeWhile (/= '/') $ drop (length refsRemotes) upstreamRef