From 36ca6922b17731dc7b8cba4f9a6a30742166f618 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Jun 10 2014 17:29:24 +0000 Subject: don't process entire log --- diff --git a/return_disttag.sh b/return_disttag.sh index 5f78d1f..f2e5287 100755 --- a/return_disttag.sh +++ b/return_disttag.sh @@ -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