Re: [PATCH kvm-unit-tests] Makefile: fix build-head with old git

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 23/06/2017 18:33, Andrew Jones wrote:
> Older git doesn't have '-C'.
> 
> Signed-off-by: Andrew Jones <drjones@xxxxxxxxxx>
> ---
>  Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Makefile b/Makefile
> index 17d91c8ccf0ed..933b9f0f7ac6f 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -91,7 +91,7 @@ directories:
>  
>  -include */.*.d */*/.*.d
>  
> -all: directories $(shell git -C $(SRCDIR) rev-parse --verify --short=8 HEAD >build-head 2>/dev/null)
> +all: directories $(shell cd $(SRCDIR) && git rev-parse --verify --short=8 HEAD >$(PWD)/build-head 2>/dev/null)
>  
>  standalone: all
>  	@scripts/mkstandalone.sh
> 

Queued, thanks.

Paolo



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux