Skip to content

Commit

Permalink
[GUILT] handle branches with slashes in guilt-graph
Browse files Browse the repository at this point in the history
Avoid sed errors when the branch name contains a slash.

Signed-off-by: Per Cederqvist <[email protected]>
Signed-off-by: Josef 'Jeff' Sipek <[email protected]>
  • Loading branch information
Per Cederqvist authored and jeffpc committed Mar 13, 2012
1 parent 49a7f22 commit 2da4631
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion guilt-graph
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ disp "digraph G {"

current="$top"

safebranch=`echo "$branch"|sed 's%/%\\\\/%g'`
while [ "$current" != "$base" ]; do
pname=`git show-ref | sed -n -e "
/^$current refs\/patches\/$branch/ {
/^$current refs\/patches\/$safebranch/ {
s,^$current refs/patches/$branch/,,
p
q
Expand Down

0 comments on commit 2da4631

Please sign in to comment.