removeReferences method

Future<void> removeReferences(
  1. String prefix
)

Implementation

Future<void> removeReferences(String prefix) async {
  assert(prefix.startsWith(refPrefix));

  var refLocation = p.join(dotGitDir, prefix);
  var dir = fs.directory(refLocation);
  if (!dir.existsSync()) {
    return;
  }

  await dir.delete(recursive: true);
  return;
}