carpentries / sandpaper

User Interface for The Carpentries Workbench
https://carpentries.github.io/sandpaper
Other
41 stars 24 forks source link

bypass multiple value problem in default branch #517

Closed zkamvar closed 1 year ago

zkamvar commented 1 year ago

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")