Closed (fixed)
Project:
Project Git instructions
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Oct 2011 at 11:21 UTC
Updated:
10 Sep 2022 at 06:27 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
helmo commentedIt was decided to leave these out initially for simplicity, but I like to have them when a shell needs them.
It's unfortunately a bit more complex then filling the @branch to include quote chars.
As the same token is also used in the form origin/@branch, in which case 'origin/' should be included in the quotes.
Comment #2
Niklas Fiekas commentedFortunately single quotes work in origin/'branchname'. Please review this patch, that works for me.
Comment #3
helmo commentedNice find, have to give it a try soonish...
Comment #4
helmo commentedHmm soonish can be stretched too far ;)
I've tried with a branch called: test<branch in http://drupal.org/sandbox/helmo/1104672
only adds single quotes around that, which would result in no quotes at all following your patch.
Comment #5
Niklas Fiekas commentedescapeshellcmd() works on all the examples. But I am not sure if that is luck, or if it is correct in general.
Comment #6
eliza411 commentedtagging
Comment #7
helmo commentedI've done some further testing.
The patch from #2 which I committed last year does not suffice.
For example a string containing less then (<) didn't get quotes.
I've now updated the condition to
Testable on: http://git-drupal_7.redesign.devdrupal.org/node/1104672/git-instructions...
Comment #8
helmo commentedDarn it needed more work... now it's:
Comment #11
fit_hunk commentedbranchname in double quotes as "" worked for me