]> git.ozlabs.org Git - next-scripts/commitdiff
cope with branches with / intheir name when making next branches
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 10 Jun 2009 12:41:23 +0000 (22:41 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 10 Jun 2009 12:41:23 +0000 (22:41 +1000)
make_next_branches

index 73fc3aeb93e94a1324b094c71597cb2633a0916c..7409713b3a574866ede1b0b52c6c0dfcbfc5d5d7 100755 (executable)
@@ -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/}