Skip to content
Commit 682f0b64 authored by Sean McAllister's avatar Sean McAllister
Browse files

Fix how we format the full destination branch when uploading.



If the dest-branch attribute is set in the project manifest, then
we need to push to that branch.  Previously, we would unconditionally
pre-pend the refs/heads prefix to it.  The dest-branch attribute is
allowed to be a ref expression though, so it may already have it.

Simple fix is to check if it already has the prefix before adding it.

Bug: crbug.com/gerrit/12770

Change-Id: I45d6107ed6cf305cf223023b0ddad4278f7f4146
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/268152
Reviewed-by: default avatarMike Frysinger <vapier@google.com>
Tested-by: default avatarSean McAllister <smcallis@google.com>
parent e7082ccb
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