Cobra
Cobra copied to clipboard
分支带 /的扫描报错
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]