summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-10-30 05:47:22 +0600
committerJohn McCrae <john.mccrae@progress.com>2022-10-30 05:47:22 +0600
commitd794443f47abe3a7fa8cb0d4dfe4156644f1eac0 (patch)
tree473351cb23da661129c036988d9eb2cf421f9318
parent1f1c3a95db10c53e9f44bf8cbd507918298c6884 (diff)
downloadchef-d794443f47abe3a7fa8cb0d4dfe4156644f1eac0.tar.gz
Why is git archive failing? Replacing it with Compress-Archive
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r--habitat/plan.ps15
1 files changed, 3 insertions, 2 deletions
diff --git a/habitat/plan.ps1 b/habitat/plan.ps1
index 2031a6dcb3..0f51a61653 100644
--- a/habitat/plan.ps1
+++ b/habitat/plan.ps1
@@ -42,8 +42,9 @@ function Invoke-Download() {
# source is in this repo, so we're going to create an archive from the
# appropriate path within the repo and place the generated tarball in the
# location expected by do_unpack
- $env:Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User")
- # $git_path += "c:\\Program Files\\Git\\bin"
+ # $env:Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User")
+ $git_path = "c:\\Program Files\\Git\\bin"
+ $env:Path = $git_path + ";" + [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User")
try {
Push-Location (Resolve-Path "$PLAN_CONTEXT/../").Path
# [System.Diagnostics.Process]::Start("git archive --format=zip --output=${HAB_CACHE_SRC_PATH}\\${pkg_filename} HEAD")