From: Jeff Sipek Date: Tue, 06 May 2014 20:13:10 GMT Subject: Re: [GUILT 18/28] guilt-graph: Handle commas in branch names. Message-ID: <20140506201310.GO1655@meili.valhalla.31bits.net> In-Reply-To: <1395387126-13681-19-git-send-email-cederp@opera.com> Signed-off-by: Josef 'Jeff' Sipek On Fri, Mar 21, 2014 at 08:31:56AM +0100, Per Cederqvist wrote: > This fix relies on the fact that git branch names can not contain ":". > > Signed-off-by: Per Cederqvist > --- > guilt-graph | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/guilt-graph b/guilt-graph > index 00301d5..575f03b 100755 > --- a/guilt-graph > +++ b/guilt-graph > @@ -52,7 +52,7 @@ safebranch=`echo "$branch"|sed 's%/%\\\\/%g'` > while [ "$current" != "$base" ]; do > pname=`git show-ref | sed -n -e " > /^$current refs\/patches\/$safebranch/ { > - s,^$current refs/patches/$branch/,, > + s:^$current refs/patches/$branch/:: > p > q > }"` > -- > 1.8.3.1 > -- Computer Science is no more about computers than astronomy is about telescopes. - Edsger Dijkstra