1
0
Fork 0
forked from bioeb_org/ub4tg

i forgot what tee command exists

This commit is contained in:
Your Name 2024-12-19 11:31:12 +03:00
parent 46add00fbf
commit 1203049e60

View file

@ -15,9 +15,7 @@ async def git_notifications_update():
if fetching_git == 0:
os.system("printf 'For apply tap button Get update and restart bot\nChanges:\n' > upd_info")
commits = os.popen(
"git log --pretty=format:'%h %s%n%b' HEAD..origin/$(git rev-parse --abbrev-ref HEAD)").read()
os.popen(
"git log --pretty=format:'%h %s%n%b' HEAD..origin/$(git rev-parse --abbrev-ref HEAD) >> upd_info")
"git log --pretty=format:'%h %s%n%b' HEAD..origin/$(git rev-parse --abbrev-ref HEAD) | tee upd_info").read()
if len(commits) <= 5:
logger.info('updates not found, nothing to do')
else: