Sean McAllister 682f0b6426 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: Mike Frysinger <vapier@google.com>
Tested-by: Sean McAllister <smcallis@google.com>
2020-05-19 15:25:42 +00:00
..
2020-02-20 06:14:00 +00:00
2020-02-17 23:49:47 +00:00
2020-03-23 00:31:10 +00:00
2020-02-12 11:44:59 +00:00
2020-03-25 04:55:50 +00:00
2019-06-13 14:30:52 +00:00
2020-02-19 00:24:43 +00:00
2020-02-19 00:24:43 +00:00
2020-04-02 21:17:54 +00:00