| Index: sdk/lib/_internal/pub/lib/src/entrypoint.dart
|
| diff --git a/sdk/lib/_internal/pub/lib/src/entrypoint.dart b/sdk/lib/_internal/pub/lib/src/entrypoint.dart
|
| index e6bfd4f59ad07dcb3f805b048b70e95f77d7005b..70888bc632f13075b142ca90d936bb653b3445c2 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/entrypoint.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/entrypoint.dart
|
| @@ -270,15 +270,10 @@ class Entrypoint {
|
|
|
| return git.isInstalled.then((gitInstalled) {
|
| if (dirExists(path.join(root.dir, '.git')) && gitInstalled) {
|
| - // Make sure the path is relative to the root so that Git understands
|
| - // it's within the repository.
|
| - var relativeBeneath = beneath; //path.relative(beneath, from: root.dir);
|
| -
|
| // List all files that aren't gitignored, including those not checked
|
| // in to Git.
|
| return git.run(
|
| - ["ls-files", "--cached", "--others", "--exclude-standard",
|
| - relativeBeneath],
|
| + ["ls-files", "--cached", "--others", "--exclude-standard", beneath],
|
| workingDir: root.dir).then((files) {
|
| // Git always prints files relative to the project root, but we want
|
| // them relative to the working directory. It also prints forward
|
|
|