[media-driver] Fix ignore-branch

Since jiri will put our third_party repos in a detached HEAD state
comparing the branch to main will fail. Instead compare the current
state of the repo with that of JIRI_HEAD. If we are not JIRI_HEAD
then we are commiting a version that has not been checked into the
integration repo and we should warn the user.

Change-Id: I21ede26d7d092bf1d986146b69d75cad0038e073
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/github.com/intel/media-driver/+/707066
Reviewed-by: John Bauman <jbauman@google.com>
1 file changed