Detect buildpacks for specific branch (fall back to deploy-branch to be consistent with deployment behavior)
This commit is contained in:
1 parent
e234401178
commit
65e0fb9037
4 files changed
+20
-6
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user