gitClone method
Clones url into the served root, returning the resulting head SHA and the
checked-out branch.
Implementation
Future<({String head, String? branch})> gitClone(
String url, {
String? branch,
int? depth,
bool bare = false,
}) async {
final reply = await _call(
DriveOp.gitClone,
fields: {
'url': url,
'branch': ?branch,
'depth': ?depth,
if (bare) 'bare': true,
},
);
return (
head: reply.header['head'] as String,
branch: reply.header['branch'] as String?,
);
}