merge-kernel: Fix warnings about pointing to a different object.
merge-kernel nearly always emits harmless but nonetheless needless
noise:
warn: refs/heads/merge/chromeos-5.10-v5.10.26 found at . but
points to a different object
warn: Are you sure you pushed 'HEAD' there?
Warning is coming from:
http://google3/third_party/git/git-request-pull.sh?l=126
Since the remote sha is not specified, it defaults to HEAD here:
http://google3/third_party/git/git-request-pull.sh?l=115
The script parses the output of git ls-remote . and finds
refs/remotes/cros/HEAD, and that SHA always translates into ToT of
cros/chromeos-5.4 no matter what kernel directory is used, because
of chromeos's shared kernel repos.
Adding mbranch to git request-pull allows it to find the matching
'remote' reference object and not complain.
BUG=b:183705922
TEST=Manual runs of merge-kernel.
Change-Id: Id0c3957bcb906bac33302878efdd80a58c28b381
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/3531162
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Reviewed-by: William K Lin <wklin@google.com>
Commit-Queue: Martin Faltesek <mfaltesek@google.com>
Tested-by: Martin Faltesek <mfaltesek@google.com>
Auto-Submit: Martin Faltesek <mfaltesek@google.com>
1 file changed