Skip to content
Snippets Groups Projects
Commit dc689be9 authored by Simona Vetter's avatar Simona Vetter
Browse files

dim: basic Fixes: check


Somewhat inspired by Stephen Rotwell's code, but because random
unfriendly encounters with bash it ended up looking quite a bit
different. Also only really checks sha1 for now, but that should be
good enough.

v2: Actually forward the error code from the subshell (which was
automatically created because of the pipeline, now I made it
explicit). Spotted by shellcheck, somehow I didn't notice that my
checks didn't actually abort the pull in my testing.

v3:
- quiet some noise in the output
- also check sha1 length and whether the subject matches. That latter
  check is a bit more strict than what sfr uses, but matches what dim
  cite produces.

Cc: Dave Airlie <airlied@linux.ie>
Acked-by: default avatarDave Airlie <airlied@linux.ie>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
parent 4ffa7679
No related branches found
No related tags found
Loading
Checking pipeline status
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