FeeiCN / Cobra

Source Code Security Audit (源代码安全审计)

Home Page:http://cobra.feei.cn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

分支带 /的扫描报错

arthur657834 opened this issue · comments

System and Python Environment

Item Tooltip Value
System uname -a
Python python -V
Cobra python cobra.py

Description

[Description of the bug or feature]

Steps to Reproduce

utils.py 文件 def target_directory
149 if '/' in branch:
150 target, branch = '{t}:{b}'.format(t=target, b=branch), 'master'

这个判断必要性在哪,为什么要替换成master,master 难道一定会存在吗 ????target 替换之后会通不过re.match的正则校验从而出错

Expected behavior: [What you expected to happen]

Actual behavior: [What actually happened]