add a debug message

This commit is contained in:
Riley Housden 2022-08-19 23:15:30 -04:00
parent 21f64c0f76
commit fc86622c1f
Signed by: InValidFire
GPG Key ID: 0D6208F6DF56B4D8
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ async def get_git_index_diff_branch(branch: str) -> str:
async def get_git_commits_ahead_behind(branch: str, remote: str) -> tuple[int, int]:
# commits ahead/behind remote
output = await create_subprocess("git", "rev-list", "--left-right", "--count", branch+"..."+remote)
print("git_commmits_ahead:", output)
commits_ahead = int(output.split()[0])
commits_behind = int(output.split()[1])
return commits_ahead, commits_behind