diff --git a/lib/src/git_data.dart b/lib/src/git_data.dart index 52143e5..27ae95e 100644 --- a/lib/src/git_data.dart +++ b/lib/src/git_data.dart @@ -131,6 +131,8 @@ class GitBranch { {ProcessSystem processSystem: const ProcessSystem(), Map environment}) { if (null == environment) environment = Platform.environment; + if (null != environment["CI_BRANCH"]) return environment[ + "CI_BRANCH"]; if (null != environment["TRAVIS_BRANCH"]) return environment[ "TRAVIS_BRANCH"]; var args = ["rev-parse", "--abbrev-ref", "HEAD"];