我一直试图用我的fastfile创建一个用于创建新分支的通道。就我尝试运行git命令而言,我必须在快速文件中使用“ sh”命令,如下所示:sh("git", "checkout", "-b","ANewBranch")
是否有一个插件可以消除使用sh和双引号的这种依赖关系?
我也一直尝试在我的快速文件中运行“ git_branch”操作,但是它不起作用。其他操作(例如“ increment_build_number”)也可以正常工作。这是快速文件:
lane :createBranch do | options |
if options[:branchName]
sh("git", "checkout", "-b", options[:branchName])
git_branch
else
UI.user_error!("Send the branch name as: <fastlane createBranch branchName:NewBranchName>")
end
end