Browse Source

fix deployment hooks check

Mohammed Nafees 4 years ago
parent
commit
ccbc2db254
1 changed files with 5 additions and 1 deletions
  1. 5 1
      cli/cmd/apply.go

+ 5 - 1
cli/cmd/apply.go

@@ -131,7 +131,11 @@ func hasDeploymentHookEnvVars() bool {
 		return false
 	}
 
-	if branchName := os.Getenv("PORTER_BRANCH_NAME"); branchName == "" {
+	if branchFrom := os.Getenv("PORTER_BRANCH_FROM"); branchFrom == "" {
+		return false
+	}
+
+	if branchInto := os.Getenv("PORTER_BRANCH_INTO"); branchInto == "" {
 		return false
 	}