summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool/standard.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/devtool/standard.py')
-rw-r--r--scripts/lib/devtool/standard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 2e56cd3050..13612d64c4 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -772,7 +772,7 @@ def get_staging_kver(srcdir):
772def get_staging_kbranch(srcdir): 772def get_staging_kbranch(srcdir):
773 staging_kbranch = "" 773 staging_kbranch = ""
774 if os.path.exists(srcdir) and os.listdir(srcdir): 774 if os.path.exists(srcdir) and os.listdir(srcdir):
775 (branch, _) = bb.process.run('git branch | grep \* | cut -d \' \' -f2', cwd=srcdir) 775 (branch, _) = bb.process.run('git branch | grep \\* | cut -d \' \' -f2', cwd=srcdir)
776 staging_kbranch = "".join(branch.split('\n')[0]) 776 staging_kbranch = "".join(branch.split('\n')[0])
777 return staging_kbranch 777 return staging_kbranch
778 778