[+] Filter commits by days

This commit is contained in:
Azalea (on HyDEV-Daisy)
2022-05-09 01:55:28 -04:00
parent 039fe87d29
commit f9a0ee4b5b
4 changed files with 24 additions and 12 deletions
+2 -1
View File
@@ -148,8 +148,9 @@ def shellCallTemplate(cmd, enc='utf-8'):
logging.info(cmd)
with Popen(cmd, stdout=PIPE, stderr=PIPE, shell=True, encoding=enc) as p:
out, err = p.communicate()
ret = p.returncode
# print(output)
if err:
if ret != 0 and err:
m = re.search('unknown revision or path not in the working tree', err)
if not m:
raise CalledProcessError(err, '-1')