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

Unified Diff: PRESUBMIT.py

Issue 1058483002: Find the HASHTAGS file even if you are not at the checkout root (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PRESUBMIT.py
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 8b60774de5fff6f67ad7f40b3181ac2176a8052c..a036be6fc84876ed218d9a52441511a40a1c2bd1 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -392,7 +392,8 @@ def PostUploadHook(cl, change, output_api):
'Automatically added \'NOTRY=true\' to the CL\'s description'))
# Read and process the HASHTAGS file.
- with open('HASHTAGS', 'rb') as hashtags_csv:
+ hashtags_fullpath = os.path.join(change._local_root, 'HASHTAGS')
+ with open(hashtags_fullpath, 'rb') as hashtags_csv:
hashtags_reader = csv.reader(hashtags_csv, delimiter=',')
for row in hashtags_reader:
if not row or row[0].startswith('#'):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698