Index: trychange.py |
diff --git a/trychange.py b/trychange.py |
index 8a6e35eac380b4da19d3a92eb181672681c66426..8fe2b5fb17eafa0ff879d0d2bbf5bd92a515d216 100755 |
--- a/trychange.py |
+++ b/trychange.py |
@@ -640,12 +640,13 @@ def _SendChangeGit(bot_spec, options): |
with _PrepareDescriptionAndPatchFiles(description, options) as ( |
patch_filename, description_filename): |
logging.info('Committing patch') |
- target_branch = ('refs/patches/' + |
- os.path.basename(patch_filename).replace(' ','-')) |
+ target_branch = 'refs/patches/%s/%s' % ( |
+ Escape(options.user), |
+ os.path.basename(patch_filename).replace(' ','_')) |
target_filename = os.path.join(patch_dir, 'patch.diff') |
branch_file = os.path.join(patch_dir, GIT_BRANCH_FILE) |
try: |
- # Crete a new branch and put the patch there |
+ # Create a new branch and put the patch there. |
patch_git('checkout', '--orphan', target_branch) |
patch_git('reset') |
patch_git('clean', '-f') |