hvsp: put series at end of branch name
authorHugo Villeneuve <hugo@hugovil.com>
Mon, 29 May 2023 14:10:06 +0000 (10:10 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Thu, 1 Jun 2023 19:16:14 +0000 (15:16 -0400)
To have better alphabetical order when listing similar branches.

scripts/kernel-send-patches.sh

index 10d93ef..e98cd3f 100755 (executable)
@@ -232,14 +232,12 @@ rm -rf ${srcdir}/*.patch
 # If the cover letter is not between start and end commits, save a copy:
 cp ${srcdir}/cover-letter.txt /tmp
 
-patches_branch="kernel_send_patches"
+patches_branch="hv_send_patches_$(basename ${srcdir})"
 
 if [ x"${series}" != x"" ]; then
     patches_branch="${patches_branch}_v${series}"
 fi
 
-patches_branch="${patches_branch}_$(basename ${srcdir})"
-
 orig_branch=$(git branch --show-current)
 
 if [ x"${orig_branch}" = x"" ]; then