Skip to content

Commit 9c7becf

Browse files
committed
Use devtools version of git_uncommitted
1 parent 05fcb9a commit 9c7becf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

R/check-git.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ git_report_branch <- function(pkg) {
2020

2121
git_check_uncommitted <- function(pkg) {
2222
check_status(
23-
!asNamespace("usethis")$git_uncommitted(pkg$path),
23+
!git_uncommitted(pkg$path),
2424
"uncommitted files",
2525
"All files should be tracked and committed before release. Please add and commit."
2626
)

R/git.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ git_branch <- function(path = ".") {
88
system2("git", c("rev-parse", "--abbrev-ref", "HEAD"), stdout = TRUE)
99
}
1010

11-
git_uncommited <- function(path = ".") {
11+
git_uncommitted <- function(path = ".") {
1212
withr::local_dir(path)
1313

1414
out <- system2("git", c("status", "--porcelain=v1"), stdout = TRUE)

0 commit comments

Comments
 (0)