Skip to content

Commit

Permalink
Fix submodule test on Windows, really
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Apr 4, 2024
1 parent f351869 commit 2a01507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/git-submodules.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
parse_submodules <- function(file) {
if (grepl("\n", file)) {
# fix windows line endings
file <- sub("\r\n", "\n", file, fixed = TRUE)
file <- gsub("\r\n", "\n", file, fixed = TRUE)
x <- strsplit(file, "\n")[[1]]
} else {
x <- readLines(file)
Expand Down

0 comments on commit 2a01507

Please sign in to comment.