Skip to content

Commit

Permalink
also skip HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinushey committed Apr 26, 2024
1 parent 9328cfe commit 5d0d52c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/records.R
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ renv_record_format_remote <- function(record, compact = FALSE, pak = FALSE) {

# prefer using 'ref' for compact display
if (compact && length(ref)) {
ref <- if (ref %in% c("main", "master")) NULL else ref
ref <- if (ref %in% c("HEAD", "main", "master")) NULL else ref
remote <- paste(c(remote, ref), collapse = "@")
return(remote)
}
Expand Down

0 comments on commit 5d0d52c

Please sign in to comment.