diff mbox

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

Message ID 1498235637-26322-1-git-send-email-drjones@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Andrew Jones June 23, 2017, 4:33 p.m. UTC
Older git doesn't have '-C'.

Signed-off-by: Andrew Jones <drjones@redhat.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Paolo Bonzini June 27, 2017, 12:36 p.m. UTC | #1
On 23/06/2017 18:33, Andrew Jones wrote:
> Older git doesn't have '-C'.
> 
> Signed-off-by: Andrew Jones <drjones@redhat.com>
> ---
>  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
diff mbox

Patch

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