Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(698)

Unified Diff: utils/pub/io.dart

Issue 11360133: Revert "Pass absolute path to 'git clone'." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/pub/git_source.dart ('k') | utils/tests/pub/pub.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/io.dart
diff --git a/utils/pub/io.dart b/utils/pub/io.dart
index 2d2e6bc1d6f0d4abe4bc8c70cc13e94ad66ff839..cccedfc17b93098bafde5f6847aaa8d9023ba6a5 100644
--- a/utils/pub/io.dart
+++ b/utils/pub/io.dart
@@ -19,7 +19,7 @@ bool _isGitInstalledCache;
String _gitCommandCache;
/** Gets the current working directory. */
-String get workingDir => getFullPath('.');
+String get workingDir => new File('.').fullPathSync();
const Pattern NEWLINE_PATTERN = const RegExp("\r\n?|\n\r?");
@@ -649,7 +649,7 @@ Future<bool> _extractTarGzWindows(InputStream stream, String destination) {
// we can figure out why it fails.
// Find 7zip.
- var scriptPath = getFullPath(new Options().script);
+ var scriptPath = new File(new Options().script).fullPathSync();
var scriptDir = new Path.fromNative(scriptPath).directoryPath;
// Note: This line of code gets munged by create_sdk.py to be the correct
« no previous file with comments | « utils/pub/git_source.dart ('k') | utils/tests/pub/pub.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698