cloneBare method
Clones the repository source into the bare repository target, and
opens it as a GitFileBareRepository.
source is a remote location in one of the accepted forms documented
on this class. A path is always treated as a path, even when it is
spelled like an option. Every other failure is a GitException.
Throws GitUnsupportedUrlException without running git when source
is not in an accepted form, GitAuthenticationException when the
remote refused or demanded credentials, GitRemoteUnreachableException
when the remote host could not be reached, and
GitRemoteRepositoryNotFoundException when no repository exists at
source.
Implementation
@override
Future<GitFileBareRepository> cloneBare(
String source,
String target,
) async {
await _clone(source, target, bare: true);
return openBare(target);
}