[PATCH] gen-version.sh: check if git is available before trying to call it
Lukas Fleischer
cgit at cryptocrack.de
Wed Feb 5 11:23:31 CET 2014
On Sat, 01 Feb 2014 at 16:10:44, Fabien C. wrote:
> [...]
> if test "$(git rev-parse --git-dir 2>/dev/null)" = '.git'
> then
> V=$(git describe --abbrev=4 HEAD 2>/dev/null)
> fi
>
> I think this one solves the above problems.
I personally like this approach. Jason?
>
> Regards,
> Fabien
>
> [1]: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html
>
>
> _______________________________________________
> CGit mailing list
> CGit at lists.zx2c4.com
> http://lists.zx2c4.com/mailman/listinfo/cgit
More information about the CGit
mailing list