diff --git a/perl-xCAT/modifyUtils b/perl-xCAT/modifyUtils index becac2979..bbad27bdb 100755 --- a/perl-xCAT/modifyUtils +++ b/perl-xCAT/modifyUtils @@ -8,7 +8,7 @@ if [ -z "$2" ] fi VER=$1 -GITREF="git $2, " +GITREF="git commit $2, " BUILDDATE=`date` #echo ". '(built $BUILDDATE)'" diff --git a/perl-xCAT/perl-xCAT.spec b/perl-xCAT/perl-xCAT.spec index eb11a4195..0cef475ee 100644 --- a/perl-xCAT/perl-xCAT.spec +++ b/perl-xCAT/perl-xCAT.spec @@ -23,7 +23,7 @@ Provides: perl-xCAT = %{epoch}:%{version} Provides perl xCAT libraries for core functionality. Required for all xCAT installations. Includes xCAT::Table, xCAT::NodeRange, among others. -%define gitinfo %(git log -n 1 | head -n 1) +%define gitinfo %(git log -n 1 | head -n 1 | cut -f 2 -d ' ') %define zvm %(if [ "$zvm" = "1" ];then echo 1; else echo 0; fi) %define fsm %(if [ "$fsm" = "1" ];then echo 1; else echo 0; fi)