diff --git a/.editorconfig b/.editorconfig old mode 100644 new mode 100755 diff --git a/.gitattributes b/.gitattributes old mode 100644 new mode 100755 diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md old mode 100644 new mode 100755 diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md old mode 100644 new mode 100755 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/.travis.yml b/.travis.yml old mode 100644 new mode 100755 diff --git a/CHANGELOG.md b/CHANGELOG.md old mode 100644 new mode 100755 diff --git a/Cargo.toml b/Cargo.toml old mode 100644 new mode 100755 diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/Makefile.toml b/Makefile.toml old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/appveyor.yml b/appveyor.yml old mode 100644 new mode 100755 diff --git a/docs/Gemfile b/docs/Gemfile old mode 100644 new mode 100755 diff --git a/docs/_config.yml b/docs/_config.yml old mode 100644 new mode 100755 diff --git a/docs/_includes/README.md b/docs/_includes/README.md old mode 100644 new mode 100755 diff --git a/docs/_includes/content.md b/docs/_includes/content.md old mode 100644 new mode 100755 diff --git a/docs/_includes/main.html b/docs/_includes/main.html old mode 100644 new mode 100755 diff --git a/docs/_includes/nav.md b/docs/_includes/nav.md old mode 100644 new mode 100755 diff --git a/docs/api.html b/docs/api.html old mode 100644 new mode 100755 diff --git a/docs/api/COPYRIGHT.txt b/docs/api/COPYRIGHT.txt old mode 100644 new mode 100755 diff --git a/docs/api/FiraSans-LICENSE.txt b/docs/api/FiraSans-LICENSE.txt old mode 100644 new mode 100755 diff --git a/docs/api/FiraSans-Medium.woff b/docs/api/FiraSans-Medium.woff old mode 100644 new mode 100755 diff --git a/docs/api/FiraSans-Regular.woff b/docs/api/FiraSans-Regular.woff old mode 100644 new mode 100755 diff --git a/docs/api/Heuristica-Italic.woff b/docs/api/Heuristica-Italic.woff old mode 100644 new mode 100755 diff --git a/docs/api/Heuristica-LICENSE.txt b/docs/api/Heuristica-LICENSE.txt old mode 100644 new mode 100755 diff --git a/docs/api/LICENSE-APACHE.txt b/docs/api/LICENSE-APACHE.txt old mode 100644 new mode 100755 diff --git a/docs/api/LICENSE-MIT.txt b/docs/api/LICENSE-MIT.txt old mode 100644 new mode 100755 diff --git a/docs/api/SourceCodePro-LICENSE.txt b/docs/api/SourceCodePro-LICENSE.txt old mode 100644 new mode 100755 diff --git a/docs/api/SourceCodePro-Regular.woff b/docs/api/SourceCodePro-Regular.woff old mode 100644 new mode 100755 diff --git a/docs/api/SourceCodePro-Semibold.woff b/docs/api/SourceCodePro-Semibold.woff old mode 100644 new mode 100755 diff --git a/docs/api/SourceSerifPro-Bold.woff b/docs/api/SourceSerifPro-Bold.woff old mode 100644 new mode 100755 diff --git a/docs/api/SourceSerifPro-LICENSE.txt b/docs/api/SourceSerifPro-LICENSE.txt old mode 100644 new mode 100755 diff --git a/docs/api/SourceSerifPro-Regular.woff b/docs/api/SourceSerifPro-Regular.woff old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/index.html b/docs/api/cargo_make/index.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/sidebar-items.js b/docs/api/cargo_make/sidebar-items.js old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/CliArgs.t.html b/docs/api/cargo_make/types/CliArgs.t.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/Config.t.html b/docs/api/cargo_make/types/Config.t.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/ConfigSection.t.html b/docs/api/cargo_make/types/ConfigSection.t.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/CrateDependency.t.html b/docs/api/cargo_make/types/CrateDependency.t.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/CrateDependencyInfo.t.html b/docs/api/cargo_make/types/CrateDependencyInfo.t.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/CrateInfo.t.html b/docs/api/cargo_make/types/CrateInfo.t.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/EnvInfo.t.html b/docs/api/cargo_make/types/EnvInfo.t.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/EnvValue.t.html b/docs/api/cargo_make/types/EnvValue.t.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/EnvValueInfo.t.html b/docs/api/cargo_make/types/EnvValueInfo.t.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/ExecutionPlan.t.html b/docs/api/cargo_make/types/ExecutionPlan.t.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/ExternalConfig.t.html b/docs/api/cargo_make/types/ExternalConfig.t.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/FlowInfo.t.html b/docs/api/cargo_make/types/FlowInfo.t.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/GitInfo.t.html b/docs/api/cargo_make/types/GitInfo.t.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/PackageInfo.t.html b/docs/api/cargo_make/types/PackageInfo.t.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/PlatformOverrideTask.t.html b/docs/api/cargo_make/types/PlatformOverrideTask.t.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/Step.t.html b/docs/api/cargo_make/types/Step.t.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/Task.t.html b/docs/api/cargo_make/types/Task.t.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/TaskCondition.t.html b/docs/api/cargo_make/types/TaskCondition.t.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/Workspace.t.html b/docs/api/cargo_make/types/Workspace.t.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/enum.CrateDependency.html b/docs/api/cargo_make/types/enum.CrateDependency.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/enum.EnvValue.html b/docs/api/cargo_make/types/enum.EnvValue.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/fn.get_platform_name.html b/docs/api/cargo_make/types/fn.get_platform_name.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/get_platform_name.v.html b/docs/api/cargo_make/types/get_platform_name.v.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/index.html b/docs/api/cargo_make/types/index.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/sidebar-items.js b/docs/api/cargo_make/types/sidebar-items.js old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/struct.CliArgs.html b/docs/api/cargo_make/types/struct.CliArgs.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/struct.Config.html b/docs/api/cargo_make/types/struct.Config.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/struct.ConfigSection.html b/docs/api/cargo_make/types/struct.ConfigSection.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/struct.CrateDependencyInfo.html b/docs/api/cargo_make/types/struct.CrateDependencyInfo.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/struct.CrateInfo.html b/docs/api/cargo_make/types/struct.CrateInfo.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/struct.EnvInfo.html b/docs/api/cargo_make/types/struct.EnvInfo.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/struct.EnvValueInfo.html b/docs/api/cargo_make/types/struct.EnvValueInfo.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/struct.ExecutionPlan.html b/docs/api/cargo_make/types/struct.ExecutionPlan.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/struct.ExternalConfig.html b/docs/api/cargo_make/types/struct.ExternalConfig.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/struct.FlowInfo.html b/docs/api/cargo_make/types/struct.FlowInfo.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/struct.GitInfo.html b/docs/api/cargo_make/types/struct.GitInfo.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/struct.PackageInfo.html b/docs/api/cargo_make/types/struct.PackageInfo.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/struct.PlatformOverrideTask.html b/docs/api/cargo_make/types/struct.PlatformOverrideTask.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/struct.Step.html b/docs/api/cargo_make/types/struct.Step.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/struct.Task.html b/docs/api/cargo_make/types/struct.Task.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/struct.TaskCondition.html b/docs/api/cargo_make/types/struct.TaskCondition.html old mode 100644 new mode 100755 diff --git a/docs/api/cargo_make/types/struct.Workspace.html b/docs/api/cargo_make/types/struct.Workspace.html old mode 100644 new mode 100755 diff --git a/docs/api/implementors/core/clone/trait.Clone.js b/docs/api/implementors/core/clone/trait.Clone.js old mode 100644 new mode 100755 diff --git a/docs/api/implementors/core/fmt/trait.Debug.js b/docs/api/implementors/core/fmt/trait.Debug.js old mode 100644 new mode 100755 diff --git a/docs/api/main.css b/docs/api/main.css old mode 100644 new mode 100755 diff --git a/docs/api/main.js b/docs/api/main.js old mode 100644 new mode 100755 diff --git a/docs/api/normalize.css b/docs/api/normalize.css old mode 100644 new mode 100755 diff --git a/docs/api/rustdoc.css b/docs/api/rustdoc.css old mode 100644 new mode 100755 diff --git a/docs/api/search-index.js b/docs/api/search-index.js old mode 100644 new mode 100755 diff --git a/docs/api/src/cargo_make/cli.rs.html b/docs/api/src/cargo_make/cli.rs.html old mode 100644 new mode 100755 diff --git a/docs/api/src/cargo_make/command.rs.html b/docs/api/src/cargo_make/command.rs.html old mode 100644 new mode 100755 diff --git a/docs/api/src/cargo_make/condition.rs.html b/docs/api/src/cargo_make/condition.rs.html old mode 100644 new mode 100755 diff --git a/docs/api/src/cargo_make/descriptor.rs.html b/docs/api/src/cargo_make/descriptor.rs.html old mode 100644 new mode 100755 diff --git a/docs/api/src/cargo_make/environment/crateinfo.rs.html b/docs/api/src/cargo_make/environment/crateinfo.rs.html old mode 100644 new mode 100755 diff --git a/docs/api/src/cargo_make/environment/gitinfo.rs.html b/docs/api/src/cargo_make/environment/gitinfo.rs.html old mode 100644 new mode 100755 diff --git a/docs/api/src/cargo_make/environment/mod.rs.html b/docs/api/src/cargo_make/environment/mod.rs.html old mode 100644 new mode 100755 diff --git a/docs/api/src/cargo_make/installer.rs.html b/docs/api/src/cargo_make/installer.rs.html old mode 100644 new mode 100755 diff --git a/docs/api/src/cargo_make/logger.rs.html b/docs/api/src/cargo_make/logger.rs.html old mode 100644 new mode 100755 diff --git a/docs/api/src/cargo_make/main.rs.html b/docs/api/src/cargo_make/main.rs.html old mode 100644 new mode 100755 diff --git a/docs/api/src/cargo_make/runner.rs.html b/docs/api/src/cargo_make/runner.rs.html old mode 100644 new mode 100755 diff --git a/docs/api/src/cargo_make/scriptengine/mod.rs.html b/docs/api/src/cargo_make/scriptengine/mod.rs.html old mode 100644 new mode 100755 diff --git a/docs/api/src/cargo_make/scriptengine/rsscript.rs.html b/docs/api/src/cargo_make/scriptengine/rsscript.rs.html old mode 100644 new mode 100755 diff --git a/docs/api/src/cargo_make/scriptengine/shell_to_batch.rs.html b/docs/api/src/cargo_make/scriptengine/shell_to_batch.rs.html old mode 100644 new mode 100755 diff --git a/docs/api/src/cargo_make/types.rs.html b/docs/api/src/cargo_make/types.rs.html old mode 100644 new mode 100755 diff --git a/docs/api/src/cargo_make/version.rs.html b/docs/api/src/cargo_make/version.rs.html old mode 100644 new mode 100755 diff --git a/docs/assets/badges/cargo-make.svg b/docs/assets/badges/cargo-make.svg old mode 100644 new mode 100755 diff --git a/docs/assets/css/style.scss b/docs/assets/css/style.scss old mode 100644 new mode 100755 diff --git a/docs/favicon.ico b/docs/favicon.ico old mode 100644 new mode 100755 diff --git a/docs/index.md b/docs/index.md old mode 100644 new mode 100755 diff --git a/examples/alias.toml b/examples/alias.toml old mode 100644 new mode 100755 diff --git a/examples/condition.toml b/examples/condition.toml old mode 100644 new mode 100755 diff --git a/examples/cross_platform_shell.toml b/examples/cross_platform_shell.toml old mode 100644 new mode 100755 diff --git a/examples/cwd.toml b/examples/cwd.toml old mode 100644 new mode 100755 diff --git a/examples/dependencies.toml b/examples/dependencies.toml old mode 100644 new mode 100755 diff --git a/examples/env.toml b/examples/env.toml old mode 100644 new mode 100755 diff --git a/examples/extending.toml b/examples/extending.toml old mode 100644 new mode 100755 diff --git a/examples/files/extending.toml b/examples/files/extending.toml old mode 100644 new mode 100755 diff --git a/examples/kcov.toml b/examples/kcov.toml old mode 100644 new mode 100755 diff --git a/examples/platform_override.toml b/examples/platform_override.toml old mode 100644 new mode 100755 diff --git a/examples/run_task.toml b/examples/run_task.toml old mode 100644 new mode 100755 diff --git a/examples/rust-script.toml b/examples/rust-script.toml old mode 100644 new mode 100755 diff --git a/examples/script.toml b/examples/script.toml old mode 100644 new mode 100755 diff --git a/examples/simple-example.toml b/examples/simple-example.toml old mode 100644 new mode 100755 diff --git a/examples/workspace/Cargo.toml b/examples/workspace/Cargo.toml old mode 100644 new mode 100755 diff --git a/examples/workspace/Makefile.toml b/examples/workspace/Makefile.toml old mode 100644 new mode 100755 diff --git a/examples/workspace/member1/Cargo.toml b/examples/workspace/member1/Cargo.toml old mode 100644 new mode 100755 diff --git a/examples/workspace/member1/Makefile.toml b/examples/workspace/member1/Makefile.toml old mode 100644 new mode 100755 diff --git a/examples/workspace/member1/src/lib.rs b/examples/workspace/member1/src/lib.rs old mode 100644 new mode 100755 diff --git a/examples/workspace/member2/Cargo.toml b/examples/workspace/member2/Cargo.toml old mode 100644 new mode 100755 diff --git a/examples/workspace/member2/Makefile.toml b/examples/workspace/member2/Makefile.toml old mode 100644 new mode 100755 diff --git a/examples/workspace/member2/src/lib.rs b/examples/workspace/member2/src/lib.rs old mode 100644 new mode 100755 diff --git a/examples/workspace/member3/Cargo.toml b/examples/workspace/member3/Cargo.toml old mode 100644 new mode 100755 diff --git a/examples/workspace/member3/Makefile.toml b/examples/workspace/member3/Makefile.toml old mode 100644 new mode 100755 diff --git a/examples/workspace/member3/src/lib.rs b/examples/workspace/member3/src/lib.rs old mode 100644 new mode 100755 diff --git a/examples/workspace2/Cargo.toml b/examples/workspace2/Cargo.toml old mode 100644 new mode 100755 diff --git a/examples/workspace2/Makefile.toml b/examples/workspace2/Makefile.toml old mode 100644 new mode 100755 diff --git a/examples/workspace2/member/member3/Makefile.toml b/examples/workspace2/member/member3/Makefile.toml old mode 100644 new mode 100755 diff --git a/examples/workspace2/member1/Makefile.toml b/examples/workspace2/member1/Makefile.toml old mode 100644 new mode 100755 diff --git a/examples/workspace2/member2/Cargo.toml b/examples/workspace2/member2/Cargo.toml old mode 100644 new mode 100755 diff --git a/examples/workspace2/member2/Makefile.toml b/examples/workspace2/member2/Makefile.toml old mode 100644 new mode 100755 diff --git a/src/Makefile.beta.toml b/src/Makefile.beta.toml old mode 100644 new mode 100755 diff --git a/src/Makefile.stable.toml b/src/Makefile.stable.toml old mode 100644 new mode 100755 diff --git a/src/cli.rs b/src/cli.rs old mode 100644 new mode 100755 diff --git a/src/cli_test.rs b/src/cli_test.rs old mode 100644 new mode 100755 diff --git a/src/command.rs b/src/command.rs old mode 100644 new mode 100755 diff --git a/src/command_test.rs b/src/command_test.rs old mode 100644 new mode 100755 diff --git a/src/condition.rs b/src/condition.rs old mode 100644 new mode 100755 diff --git a/src/condition_test.rs b/src/condition_test.rs old mode 100644 new mode 100755 diff --git a/src/descriptor.rs b/src/descriptor.rs old mode 100644 new mode 100755 diff --git a/src/descriptor_test.rs b/src/descriptor_test.rs old mode 100644 new mode 100755 diff --git a/src/environment/crateinfo.rs b/src/environment/crateinfo.rs old mode 100644 new mode 100755 diff --git a/src/environment/crateinfo_test.rs b/src/environment/crateinfo_test.rs old mode 100644 new mode 100755 diff --git a/src/environment/gitinfo.rs b/src/environment/gitinfo.rs old mode 100644 new mode 100755 index 2b998152..b2fb3c2a --- a/src/environment/gitinfo.rs +++ b/src/environment/gitinfo.rs @@ -51,19 +51,20 @@ fn load_branch(git_info: &mut GitInfo) { match result { Ok(output) => { let exit_code = command::get_exit_code(Ok(output.status), true); - command::validate_exit_code(exit_code); - let stdout = String::from_utf8_lossy(&output.stdout); - let lines: Vec<&str> = stdout.split('\n').collect(); - for mut line in lines { - line = line.trim(); - - debug!("Checking: {}", &line); - - if line.starts_with("*") { - let parts: Vec<&str> = line.split(' ').collect(); - let value = parts[1]; - git_info.branch = Some(value.to_string()); + if exit_code == 0 { + let stdout = String::from_utf8_lossy(&output.stdout); + let lines: Vec<&str> = stdout.split('\n').collect(); + for mut line in lines { + line = line.trim(); + + debug!("Checking: {}", &line); + + if line.starts_with("*") { + let parts: Vec<&str> = line.split(' ').collect(); + let value = parts[1]; + git_info.branch = Some(value.to_string()); + } } } } diff --git a/src/environment/gitinfo_test.rs b/src/environment/gitinfo_test.rs old mode 100644 new mode 100755 diff --git a/src/environment/mod.rs b/src/environment/mod.rs old mode 100644 new mode 100755 diff --git a/src/environment/mod_test.rs b/src/environment/mod_test.rs old mode 100644 new mode 100755 diff --git a/src/installer.rs b/src/installer.rs old mode 100644 new mode 100755 diff --git a/src/installer_test.rs b/src/installer_test.rs old mode 100644 new mode 100755 diff --git a/src/logger.rs b/src/logger.rs old mode 100644 new mode 100755 diff --git a/src/logger_test.rs b/src/logger_test.rs old mode 100644 new mode 100755 diff --git a/src/main.rs b/src/main.rs old mode 100644 new mode 100755 diff --git a/src/main_test.rs b/src/main_test.rs old mode 100644 new mode 100755 diff --git a/src/runner.rs b/src/runner.rs old mode 100644 new mode 100755 diff --git a/src/runner_test.rs b/src/runner_test.rs old mode 100644 new mode 100755 diff --git a/src/scriptengine/mod.rs b/src/scriptengine/mod.rs old mode 100644 new mode 100755 diff --git a/src/scriptengine/mod_test.rs b/src/scriptengine/mod_test.rs old mode 100644 new mode 100755 diff --git a/src/scriptengine/rsscript.rs b/src/scriptengine/rsscript.rs old mode 100644 new mode 100755 diff --git a/src/scriptengine/rsscript_test.rs b/src/scriptengine/rsscript_test.rs old mode 100644 new mode 100755 diff --git a/src/scriptengine/shell_to_batch.rs b/src/scriptengine/shell_to_batch.rs old mode 100644 new mode 100755 diff --git a/src/scriptengine/shell_to_batch_test.rs b/src/scriptengine/shell_to_batch_test.rs old mode 100644 new mode 100755 diff --git a/src/test.rs b/src/test.rs old mode 100644 new mode 100755 diff --git a/src/types.rs b/src/types.rs old mode 100644 new mode 100755 diff --git a/src/types_test.rs b/src/types_test.rs old mode 100644 new mode 100755 diff --git a/src/version.rs b/src/version.rs old mode 100644 new mode 100755 diff --git a/src/version_test.rs b/src/version_test.rs old mode 100644 new mode 100755