Skip to content

Commit da95cbd

Browse files
committed
use gh if available when cloning site
1 parent 296062b commit da95cbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ test:
2323
.PHONY: test
2424

2525
site:
26-
git clone https://github.com/github/cli.github.com.git "$@"
26+
(which gh 2>/dev/null && gh repo clone github/cli.github.com "$@") || git clone https://github.com/github/cli.github.com.git "$@"
2727

2828
site-docs: site
2929
git -C site pull

0 commit comments

Comments
 (0)