Skip to contents

Determine the default branch of a git repository

Usage

GetDefaultBranch(strPkgRoot = ".")

Arguments

strPkgRoot

(length-1 character) The path to a directory in the package. Will be expanded using gert::git_find().

Value

A length-1 character vector representing the default branch name.