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

Unified Diff: chrome/common/extensions/docs/server2/github_file_system.py

Issue 82433002: Docserver: Further refactoring to the new GithubFileSystem to make it update (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, fix test data Created 7 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
Index: chrome/common/extensions/docs/server2/github_file_system.py
diff --git a/chrome/common/extensions/docs/server2/github_file_system.py b/chrome/common/extensions/docs/server2/github_file_system.py
index e2ca6f56b22e3373c314ccc0de5af4d78e4ae4ae..b7359cdb8cbd9f82bb37b2f97f6062ec59215b9f 100644
--- a/chrome/common/extensions/docs/server2/github_file_system.py
+++ b/chrome/common/extensions/docs/server2/github_file_system.py
@@ -195,7 +195,7 @@ class GithubFileSystem(FileSystem):
# Parse response JSON - but sometimes github gives us invalid JSON.
try:
- version = json.loads(result.content)['commit']['tree']['sha']
+ version = json.loads(result.content)['commit']['sha']
self._stat_object_store.Set(path, version)
return StatInfo(version)
except StandardError as e:
« no previous file with comments | « chrome/common/extensions/docs/server2/file_system.py ('k') | chrome/common/extensions/docs/server2/new_github_file_system.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698