Commit 4dc5b779 authored by Edward Lesmes's avatar Edward Lesmes Committed by LUCI CQ

git-cl: Fix split branch name

Bug: 998922, 1054888
Change-Id: I4ae14700cbd6eb483f318f6ed9f4d1f30b58153e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2068492Reviewed-by: 's avatarJosip Sokcevic <sokcevic@google.com>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
parent 1eb16f67
...@@ -50,7 +50,7 @@ def CreateBranchForDirectory(prefix, cl_index, directory, upstream): ...@@ -50,7 +50,7 @@ def CreateBranchForDirectory(prefix, cl_index, directory, upstream):
the created branch. the created branch.
""" """
existing_branches = set(git.branches(use_limit = False)) existing_branches = set(git.branches(use_limit = False))
branch_name = '_'.join([prefix, cl_index, directory]) branch_name = '_'.join([prefix, str(cl_index), directory])
if branch_name in existing_branches: if branch_name in existing_branches:
return False return False
git.run('checkout', '-t', upstream, '-b', branch_name) git.run('checkout', '-t', upstream, '-b', branch_name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment