Skip to content

Commit

Permalink
added check on info for update_submodules to fix r-lib#234
Browse files Browse the repository at this point in the history
  • Loading branch information
muschellij2 committed Nov 3, 2018
1 parent 95130c6 commit f250294
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/submodule.R
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ update_submodules <- function(source, quiet) {
}
info <- parse_submodules(file)

# Fixes #234
if (length(info) == 0) {
return()
}
to_ignore <- in_r_build_ignore(info$path, file.path(source, ".Rbuildignore"))
info <- info[!to_ignore, ]

Expand Down

0 comments on commit f250294

Please sign in to comment.