From: Stephen Rothwell Date: Wed, 10 Jun 2009 12:41:23 +0000 (+1000) Subject: cope with branches with / intheir name when making next branches X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=eccf673a92ef56ba57f3dfab89c48c3fdc506306;p=next-scripts cope with branches with / intheir name when making next branches --- diff --git a/make_next_branches b/make_next_branches index 73fc3ae..7409713 100755 --- a/make_next_branches +++ b/make_next_branches @@ -7,7 +7,7 @@ dir=$1 heads=$(grep -v '^#' ../real_control | awk -F ' ' '$2=="quilt" { printf("quilt/%s ", $3); } $2=="git" { printf("%s/%s ", $3, $5); }') for h in $heads; do - tree=${h%/*} + tree=${h%%/*} rem_ref=refs/remotes [ "$tree" == "quilt" ] && { tree=${h#quilt/}