Detect buildpacks for specific branch (fall back to deploy-branch to be consistent with deployment behavior)

This commit is contained in:
Tasos Maschalidis committed 2025-10-16 18:33:47 +03:00
1 parent e234401178
commit 65e0fb9037
4 files changed
+20 -6

No files matched your search

+2 -2
View File
@@ -32,13 +32,13 @@ func CommandClear(appName string) error {
}
// CommandDetect implements buildpacks:detect
func CommandDetect(appName string) error {
func CommandDetect(appName string, branch string) (err error) {
if err := common.VerifyAppName(appName); err != nil {
return err
}
workDir := common.AppRoot(appName)
checkedOutDir, err := checkoutBareGitRepo(workDir)
checkedOutDir, err := checkoutBareGitRepo(workDir, branch)
if err != nil {
return err
}