Skip to content

Commit

Permalink
Use devtools version of git_uncommitted
Browse files Browse the repository at this point in the history
  • Loading branch information
jimhester committed Jul 21, 2020
1 parent 05fcb9a commit 9c7becf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/check-git.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ git_report_branch <- function(pkg) {

git_check_uncommitted <- function(pkg) {
check_status(
!asNamespace("usethis")$git_uncommitted(pkg$path),
!git_uncommitted(pkg$path),
"uncommitted files",
"All files should be tracked and committed before release. Please add and commit."
)
Expand Down
2 changes: 1 addition & 1 deletion R/git.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ git_branch <- function(path = ".") {
system2("git", c("rev-parse", "--abbrev-ref", "HEAD"), stdout = TRUE)
}

git_uncommited <- function(path = ".") {
git_uncommitted <- function(path = ".") {
withr::local_dir(path)

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

0 comments on commit 9c7becf

Please sign in to comment.