anchor.diff:    foo:
       git: ../foo.git
     bar:
  -    git: ../foo.git
  +    git: ../bar.git
   ''')
       ]).scheduleCreate();
   
  
positive.code:         ]),
          dir('foo-dep', [
            file('foo-dep.dart', 'main() => "foo-dep";')
          ]),
          dir('bar', [
            file('bar.dart', 'main() => "bar";'),
            file('pubspec.yaml', '''
  dependencies:
    bar-dep:
      git: ../bar-dep.git
  ''')
          ]),
          dir('bar-dep', [
            file('bar-dep.dart', 'main() => "bar-dep";')
          ])
        ]).scheduleValidate();
  
        git('foo-dep.git', [
          file('foo-dep.dart', 'main() => "foo-dep 2";')
        ]).scheduleCommit();
  
        git('bar-dep.git', [
          file('bar-dep.dart', 'main() => "bar-dep 2";')
        ]).scheduleCommit();
  
        schedulePub(args: ['update foo'],
            output: const RegExp(@"Dependencies updated!$"));
  
        dir(packagesPath, [
          dir('foo', [
            file('foo.dart', 'main() => "foo";'),
            file('pubspec.yaml', '''
  dependencies:
    foo-dep:
  
negative.code:       run();
      });
  
      test("doesn't update one locked Git package's dependencies if it's not "
          "necessary", () {
        ensureGit();
  
        git('foo.git', [
  