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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git_mock.py

Issue 2663623003: Simplify the initialization of Git objects in Host. (Closed)
Patch Set: Remove second paragraph in comment about awesome windows git hack Created 3 years, 11 months 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
Index: third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git_mock.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git_mock.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git_mock.py
index 707f3de8c8ddb87d5bba1de82f8a8d105fa8c011..2f887cebe2f9fac1beec79007ef9f32c0dce1dc1 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git_mock.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git_mock.py
@@ -13,8 +13,9 @@ class MockGit(object):
executable_name = 'mock-git'
- def __init__(self, filesystem=None, executive=None):
+ def __init__(self, cwd=None, filesystem=None, executive=None):
self.checkout_root = '/mock-checkout'
+ self.cwd = cwd or self.checkout_root
self.added_paths = set()
self._filesystem = filesystem or MockFileSystem()
self._executive = executive or MockExecutive()

Powered by Google App Engine
This is Rietveld 408576698