If a user has multiple init.defaultBranch statements in their global git config, then initialising a lesson will fail. This will fix that issue by always taking the last defined branch
This will fix #516
To test this out, it can be installed with either the {pak} or {remotes} packages:
# VIA PAK -----------------------------------
# install.packages("pak")
pak::pkg_install("carpentries/sandpaper#517")
# ===== OR ======
# VIA REMOTES -------------------------------
# install.packages("remotes")
remotes::install_github("carpentries/sandpaper#517")
If a user has multiple
init.defaultBranch
statements in their global git config, then initialising a lesson will fail. This will fix that issue by always taking the last defined branchThis will fix #516
To test this out, it can be installed with either the {pak} or {remotes} packages: