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,9 +32,13 @@ func main() {
|
||||
err = buildpacks.CommandClear(appName)
|
||||
case "detect":
|
||||
args := flag.NewFlagSet("buildpacks:detect", flag.ExitOnError)
|
||||
branch := args.String("branch", "", "--branch: the branch to detect against (defaults to the deploy branch)")
|
||||
args.Parse(os.Args[2:])
|
||||
appName := args.Arg(0)
|
||||
err = buildpacks.CommandDetect(appName)
|
||||
if *branch == "" {
|
||||
*branch = common.PropertyGet("git", appName, "deploy-branch")
|
||||
}
|
||||
err = buildpacks.CommandDetect(appName, *branch)
|
||||
case "list":
|
||||
args := flag.NewFlagSet("buildpacks:list", flag.ExitOnError)
|
||||
args.Parse(os.Args[2:])
|
||||
|
||||
Reference in new issue
Block a user