OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library descriptor.git; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 | 6 |
9 import 'package:path/path.dart' as path; | 7 import 'package:path/path.dart' as path; |
10 import 'package:pub/src/git.dart' as git; | 8 import 'package:pub/src/git.dart' as git; |
11 import 'package:scheduled_test/scheduled_test.dart'; | 9 import 'package:scheduled_test/scheduled_test.dart'; |
12 import 'package:scheduled_test/descriptor.dart'; | 10 import 'package:scheduled_test/descriptor.dart'; |
13 | 11 |
14 /// Describes a Git repository and its contents. | 12 /// Describes a Git repository and its contents. |
15 class GitRepoDescriptor extends DirectoryDescriptor { | 13 class GitRepoDescriptor extends DirectoryDescriptor { |
16 GitRepoDescriptor(String name, List<Descriptor> contents) | 14 GitRepoDescriptor(String name, List<Descriptor> contents) |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 'GIT_COMMITTER_EMAIL': 'pub@dartlang.org' | 66 'GIT_COMMITTER_EMAIL': 'pub@dartlang.org' |
69 }; | 67 }; |
70 | 68 |
71 if (parent == null) parent = defaultRoot; | 69 if (parent == null) parent = defaultRoot; |
72 return git.run(args, | 70 return git.run(args, |
73 workingDir: path.join(parent, name), | 71 workingDir: path.join(parent, name), |
74 environment: environment); | 72 environment: environment); |
75 } | 73 } |
76 } | 74 } |
77 | 75 |
OLD | NEW |