mirror of
https://github.com/qca/qca-swiss-army-knife.git
synced 2026-01-27 17:07:18 +01:00
ath12k-check: get_commited_files(): use --name-only
No need to use cut as git ls-tree has --name-only. No functional changes. Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
This commit is contained in:
parent
02efab2e3e
commit
0a556ac040
1 changed files with 2 additions and 2 deletions
|
|
@ -276,8 +276,8 @@ def run_checkpatch_cmd(args, q, tag_map):
|
|||
|
||||
# get all driver files which are commited to git, includes Kconfig, Makefile etc
|
||||
def get_commited_files():
|
||||
cmd = 'git ls-tree HEAD %s | cut -f 2' % (DRIVER_DIR)
|
||||
output = subprocess.check_output(cmd, shell=True, universal_newlines=True)
|
||||
cmd = ['git', 'ls-tree', '--name-only', 'HEAD', DRIVER_DIR]
|
||||
output = subprocess.check_output(cmd, universal_newlines=True)
|
||||
return output.splitlines()
|
||||
|
||||
def run_checkpatch(args):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue