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

Unified Diff: tools/git/move_source_file.py

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « tools/clang/scripts/update.py ('k') | tools/valgrind/chrome_tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/git/move_source_file.py
diff --git a/tools/git/move_source_file.py b/tools/git/move_source_file.py
index 2de0b5b1f51b5744c004ebfdf14ae6b69d97c55c..117b3ebb1980a7e1d37db0c216cda4266cd35984 100755
--- a/tools/git/move_source_file.py
+++ b/tools/git/move_source_file.py
@@ -50,6 +50,10 @@ def MakeDestinationPath(from_path, to_path):
raise Exception('Only intended to move individual source files '
'(%s does not have a recognized extension).' %
from_path)
+
+ # Remove '.', '..', etc.
+ to_path = os.path.normpath(to_path)
+
if os.path.isdir(to_path):
to_path = os.path.join(to_path, os.path.basename(from_path))
else:
« no previous file with comments | « tools/clang/scripts/update.py ('k') | tools/valgrind/chrome_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698