Index: sdk/lib/_internal/pub/lib/src/source/git.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/source/git.dart b/sdk/lib/_internal/pub/lib/src/source/git.dart |
index c0aa95d668ce626d4b89d8fd206e79c2c232615c..510407a3e61af722904be44ba7e746b746361044 100644 |
--- a/sdk/lib/_internal/pub/lib/src/source/git.dart |
+++ b/sdk/lib/_internal/pub/lib/src/source/git.dart |
@@ -24,8 +24,6 @@ class GitSource extends CachedSource { |
/// has already been run during this run of pub. |
final _updatedRepos = new Set<String>(); |
- GitSource(); |
- |
/// Since we don't have an easy way to read from a remote Git repo, this |
/// just installs [id] into the system cache, then describes it from there. |
Future<Pubspec> describeUncached(PackageId id) { |
@@ -44,11 +42,7 @@ class GitSource extends CachedSource { |
/// `<package name>-<url hash>`. These are used to check out the repository |
/// itself; each of the commit-specific directories are clones of a directory |
/// in `cache/`. |
- Future<Package> downloadToSystemCache(PackageId id, {bool force}) { |
- // Force is not supported because the cache repair command doesn't need it. |
- // Instead, it uses [resetCachedPackages]. |
- assert(force != true); |
- |
+ Future<Package> downloadToSystemCache(PackageId id) { |
var revisionCachePath; |
if (!git.isInstalled) { |