[PATCH] gen-version.sh: check if git is available before trying to call it

Jason A. Donenfeld Jason at zx2c4.com
Wed Feb 5 15:09:54 CET 2014


On Sat, Feb 1, 2014 at 4:10 PM, Fabien C. <t74jgwb88tli9ch at jetable.org> wrote:
>
> Here is yet another version (+ patch file):
>
> if test "$(git rev-parse --git-dir 2>/dev/null)" = '.git'
> then
>         V=$(git describe --abbrev=4 HEAD 2>/dev/null)
> fi


Merged, thanks.


More information about the CGit mailing list