Kaydet (Commit) 2c1e9512 authored tarafından Miklos Vajna's avatar Miklos Vajna

git-hooks: recognize multiple bug ids

Change-Id: I6ef51a8ec3215f331d2671074be17f68aa6cd1ce
üst 9d9e4b9f
...@@ -47,9 +47,12 @@ fi ...@@ -47,9 +47,12 @@ fi
fdo_regex='fdo#[0-9]+' fdo_regex='fdo#[0-9]+'
if egrep -q "$fdo_regex" $1; then if egrep -q "$fdo_regex" $1; then
if [ "`head -n 1 $1 |egrep -o "$fdo_regex" |sed 's/fdo#//'`" -gt 88775 ]; then for bugid in `head -n 1 $1 |egrep -o "$fdo_regex" |sed 's/fdo#//'`
abort "$1" "The first line contains a suspicious fdo# rereference, did you mean tdf#?" do
fi if [ "`echo $bugid |sed 's/fdo#//'`" -gt 88775 ]; then
abort "$1" "The first line contains a suspicious fdo# rereference: 'fdo#$bugid', did you mean tdf#?"
fi
done
fi fi
# ...and that it does not continue on the second line # ...and that it does not continue on the second line
...@@ -186,3 +189,5 @@ add_ChangeId ...@@ -186,3 +189,5 @@ add_ChangeId
exit 0 exit 0
# vi:set shiftwidth=4 expandtab:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment