From da95cbd1bf81efd9ee5fd78153ef2d0108ba026f Mon Sep 17 00:00:00 2001 From: vilmibm Date: Mon, 18 May 2020 14:05:50 -0500 Subject: [PATCH] use gh if available when cloning site --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index beea7c099..3fad3142e 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ test: .PHONY: test site: - git clone https://github.com/github/cli.github.com.git "$@" + (which gh 2>/dev/null && gh repo clone github/cli.github.com "$@") || git clone https://github.com/github/cli.github.com.git "$@" site-docs: site git -C site pull