summaryrefslogtreecommitdiff
path: root/rb-branch
diff options
context:
space:
mode:
Diffstat (limited to 'rb-branch')
-rwxr-xr-xrb-branch3
1 files changed, 2 insertions, 1 deletions
diff --git a/rb-branch b/rb-branch
index 804b815..5df323c 100755
--- a/rb-branch
+++ b/rb-branch
@@ -18,7 +18,8 @@ if [ ! -x "$rb_patch" ]; then
fi
$rb_patch "$@" >"$tmp_patch_file"
-branch=`grep '^Svn-Branch:' $tmp_patch_file | sed -e 's|.*/||'`
+# For the branch name: leave only the final path component
+branch=`awk '/^Svn-Branch:/ {print $2}' $tmp_patch_file | sed -e 's|.*/||'`
svn_branch="${svn_branch_prefix}svn_$branch"
review_num=`awk '/^Review:/ {print $2}' $tmp_patch_file`
diff_num=`awk '/^Diff:/ {print $2}' $tmp_patch_file`