Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tito fails to get a commit count when there is more than one root commit #339

Open
adamladd17 opened this issue Sep 4, 2019 · 0 comments
Labels
bug Something is clearly a bug effort/medium Can be done in 1-2 days gain/low Affect only one person, corner case, has easy workaround

Comments

@adamladd17
Copy link
Contributor

get_commit_count in common always returns 0 if there is more than one root commit (this scenario pops up when you merge two old repositories into one new one).

I was able to fix this by adding output= output.split("\n")[-1] under line 919 in method get_commit_count of common.py

This just takes the initial root commit in case there are multiple.

@FrostyX FrostyX added the bug Something is clearly a bug label Mar 25, 2020
@FrostyX FrostyX added effort/medium Can be done in 1-2 days gain/low Affect only one person, corner case, has easy workaround labels Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is clearly a bug effort/medium Can be done in 1-2 days gain/low Affect only one person, corner case, has easy workaround
Projects
None yet
Development

No branches or pull requests

2 participants