add a debug message
This commit is contained in:
parent
21f64c0f76
commit
fc86622c1f
1 changed files with 1 additions and 0 deletions
|
@ -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]:
|
async def get_git_commits_ahead_behind(branch: str, remote: str) -> tuple[int, int]:
|
||||||
# commits ahead/behind remote
|
# commits ahead/behind remote
|
||||||
output = await create_subprocess("git", "rev-list", "--left-right", "--count", branch+"..."+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_ahead = int(output.split()[0])
|
||||||
commits_behind = int(output.split()[1])
|
commits_behind = int(output.split()[1])
|
||||||
return commits_ahead, commits_behind
|
return commits_ahead, commits_behind
|
||||||
|
|
Loading…
Reference in a new issue