diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2018-05-16 08:53:38 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2018-05-23 14:31:36 +0200 |
commit | d5e63d62f3118e593b0314dfda85da6fff6492e2 (patch) | |
tree | 619dead5dd52bc3ce8ed4326c7a8c110b8d72425 | |
parent | 186bf39a47bb56a4b6def7022a8841dccdb1ee8c (diff) |
dim: Fix Link: checking regression
In
commit c0c4dc1c924bd1d94315601026a2f9facd8a7f73
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date: Wed May 2 15:08:24 2018 +0200
dim: check all commits in dim apply-pull and push-branch
I broke the managed_branch logic which made sure we don't check for
Link: tags for pulled branches (since external pulls are most likely
not managed by dim complaining about the lack of Link: tags is just
noise).
Fix this.
Also fix some missing local variables while at it.
v2: Drop now unecessary {} (Jani).
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Dave Airlie <airlied@gmail.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
-rwxr-xr-x | dim | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -745,10 +745,10 @@ function dim_rebuild_tip # additional patch checks before pushing, e.g. for r-b tags function checkpatch_commit_push { - local sha1 non_dim rv + local sha1 managed_branch rv author committer author_outlook sha1=$1 - managed_branch=${2:-1} + managed_branch=$2 rv=0 # use real names for people with many different email addresses @@ -787,12 +787,14 @@ function checkpatch_commit_push function checkpatch_commit_push_range { - local rv + local rv managed_branch + managed_branch=$1 + shift rv=0 for sha1 in $(git rev-list "$@" --no-merges) ; do - checkpatch_commit_push $sha1 || rv=1 + checkpatch_commit_push $sha1 $managed_branch || rv=1 done if [ $rv == "1" ] ; then @@ -815,7 +817,7 @@ function dim_push_branch committer_email=$(git_committer_email) - checkpatch_commit_push_range "$branch@{u}..$branch" --committer="$committer_email" + checkpatch_commit_push_range 1 "$branch@{u}..$branch" --committer="$committer_email" git push $DRY_RUN $remote $branch "$@" @@ -943,7 +945,7 @@ function dim_apply_pull warn_or_fail "Nothing in the pull request" fi - checkpatch_commit_push_range "HEAD..FETCH_HEAD" + checkpatch_commit_push_range 0 "HEAD..FETCH_HEAD" if ! $DRY git pull --no-ff $pull_branch ; then if ! check_conflicts "$pull_branch" ; then |