gitClone method
Clones url into the served root, returning the resulting head SHA.
Implementation
Future<String> 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 reply.header['head'] as String;
}