Skip to content

Commit 42786c0

Browse files
committed
Can't call use_git from use_github
Because RStudio may need to restart. Fixes #93
1 parent dacee61 commit 42786c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/github.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ use_github <- function(organisation = NULL,
6161
auth_token = NULL,
6262
host = NULL) {
6363

64-
use_git()
64+
if (!uses_git()) {
65+
stop("Please use_git() before use_github()", call. = FALSE)
66+
}
6567

6668
if (uses_github(proj_get())) {
6769
done("GitHub is already initialized")

0 commit comments

Comments
 (0)