don't process entire log

This commit is contained in:
Mike McLean 2014-06-10 10:32:52 -04:00 committed by Karanbir Singh
parent 0ec59defde
commit 36ca6922b1

View file

@ -54,7 +54,7 @@ if [[ ! -e ${metadata} ]] || [[ ! -d .git ]] || [[ ! -d SOURCES ]]; then
exit 1
fi
msg=$(git log --pretty=format:"%s")
msg=$(git log --pretty=format:"%s" | grep import | head -n 1)
pkg=$(echo ${msg} | cut -d' ' -f2)
if [[ ${RHELTAG} -eq 0 ]]; then