Skip to content
Snippets Groups Projects
Commit 80a05427 authored by Haibo Huang's avatar Haibo Huang
Browse files

[Updater] Ignore commits brought in by a merge

As an example, if there is commit C (300 days old) in dev branch. Later dev is merged into upstream-master as commit M (2 days old).

Before this change, the updater will say "2 commits (300 days) behind" because both C and M is not in master.

After this change, it will say "1 commit (2 days) behind", which makes more sense.

(This change raises error when there's no merge base between upstream and master. But I think it is expected)

Test: updater.sh check googletest
Change-Id: I963b378e61677c1f6ea13af0d0f558846040b840
parent 70480f5a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment