Re: [PATCH] Use git in scripts/setlocalversion

Sam Ravnborg
2006-01-09T05:59:24Z

On Mon, Jan 09, 2006 at 11:47:12AM +0800, Coywolf Qi Hunt wrote:
> 2006/1/5, Rene Scharfe <rene.scharfe@lsrfire.ath.cx>:
> > Currently scripts/setlocalversion is a Perl script that tries to figure
> > out the current git commit ID of a repo without using git. It also
> > imports Digest::MD5 without using it and generally is too big for the
> > small task it does. :] And it always reports a git ID, even when the
> > HEAD is tagged -- this is a bug.
> >
> > This patch replaces it with a Bourne Shell script that uses git
> > commands to do the same. I can't come up with a scenario where someone
> > would use a git repo and refuse to install git core at the same time,
> > so I think it's reasonable to assume git is available.

> You didn't update the caller in the top Makefile, but that's ok.

It's fixed in my tree.

Sam