]> xenbits.xensource.com Git - people/dstodden/blktap-dkms.git/commitdiff
kernelbranches: support local branches, not only remotes.
authorDaniel Stodden <daniel.stodden@citrix.com>
Wed, 13 Jul 2011 23:09:58 +0000 (16:09 -0700)
committerDaniel Stodden <daniel.stodden@citrix.com>
Wed, 13 Jul 2011 23:14:02 +0000 (16:14 -0700)
Signed-off-by: Daniel Stodden <daniel.stodden@citrix.com>
bin/kernelbranches

index c4eaacc4d60f03c09a43cf9f8adcff8ef5ac22dc..b741fc7ca0829d72a8d8c2f7df79fb9e34fb524f 100755 (executable)
@@ -25,9 +25,9 @@ shift || fail
 # <version> strings. Sort them numerically (!), descending.
 #
 
-git --git-dir=$GIT_REPO branch -r |
+git --git-dir=$GIT_REPO branch -a |
 
-sed -ne"s, *$BRANCH_PREFIX\([0-9.]*\)$,\\1,p" |
+sed -ne"s,^[ *]*$BRANCH_PREFIX\([0-9.]*\)$,\\1,p" |
 
 kernelversions sort rev |