git-cl: Fix invocation of git new-branch
Bug: 1054787, 1051631
Change-Id: Ib36740a3f8158977897431c5b52e5ecbdaeb16b9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2068506
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
Reviewed-by: Josip Sokcevic <sokcevic@google.com>
diff --git a/git_cl.py b/git_cl.py
index de18bcb..8ecafb3 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -4524,7 +4524,7 @@
if options.force:
RunGit(['branch', '-D', options.newbranch],
stderr=subprocess2.PIPE, error_ok=True)
- git_new_branch.main(options.newbranch)
+ git_new_branch.create_new_branch(options.newbranch)
cl = Changelist(
codereview_host=target_issue_arg.hostname, issue=target_issue_arg.issue)