[ofa-general] [PATCH] ibutils: git-log calls have been changed to git log as git-xxx syntax is not working with latest git releases

Nicolas Morey-Chaisemartin devel-ofed at morey-chaisemartin.com
Sun Apr 26 12:31:22 PDT 2009


Le 26/04/2009 16:44, Yevgeny Kliteynik a écrit :
> diff --git a/ibdiag/src/Makefile.am b/ibdiag/src/Makefile.am
> index def8b0a..d32d914 100644
> --- a/ibdiag/src/Makefile.am
> +++ b/ibdiag/src/Makefile.am
> @@ -42,7 +42,7 @@ GIT=$(shell which git)
> 
> git_version.tcl : @MAINTAINER_MODE_TRUE@ FORCE
>        if test x$(GIT) != x ; then \
> -          gitver=`cd $(srcdir) ; git-log | head -1 | cut -f2 -d\  `; \
> +          gitver=`cd $(srcdir) ; rev-parse --verify HEAD`; \
>           changes=`cd $(srcdir) ; git diff . | grep ^diff | wc -l`; \
>        else \
>           gitver=undefined; changes=0; \

I think you forgot a git in front of rev-parse here 


Nicolas



More information about the general mailing list