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

Unified Diff: git_rebase_update.py

Issue 1182713002: Only chdir in rebase-update if there's a directory to go back to. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 5 years, 6 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: git_rebase_update.py
diff --git a/git_rebase_update.py b/git_rebase_update.py
index 63d050306a11503333699e85af84390c8289a51b..f98b8b2d925cc9dab303e8927c631870bb41b759 100755
--- a/git_rebase_update.py
+++ b/git_rebase_update.py
@@ -271,7 +271,8 @@ def main(args=None):
% (return_branch, root_branch)
)
git.run('checkout', root_branch)
- os.chdir(return_workdir)
+ if return_workdir:
+ os.chdir(return_workdir)
git.set_config(STARTING_BRANCH_KEY, '')
git.set_config(STARTING_WORKDIR_KEY, '')
« 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