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

settings: fix issue with Recent repository count #1024

Merged
merged 1 commit into from
Dec 12, 2019

Conversation

vgambier
Copy link
Contributor

The Recent repository count setting did not work as expected due to an off-by-one error.

If the setting was set to 4 for instance, then git-cola would keep track of the last 3 repositories (meaning the settings file would have the information on 3 repositories, one of which is the currently opened repository). This was because a nonstrict inequality was used instead of a strict inequality during a check.

With this fix, the settings file correctly now correctly keeps track of the last 4 repositories.

Signed-off-by: Victor Gambier victor.gambier@imt-atlantique.net

The Recent repository count setting did not work as expected due to an off-by-one error.

If the setting was set to 4 for instance, then git-cola would keep track of the last 3 repositories (meaning the settings file would have the information on 3 repositories, one of which is the currently opened repository). This was because a nonstrict inequality was used instead of a strict inequality during a check.

With this fix, the settings file correctly now correctly keeps track of the last 4 repositories.

Signed-off-by: Victor Gambier victor.gambier@imt-atlantique.net
@davvid davvid merged commit a4352c2 into git-cola:master Dec 12, 2019
davvid added a commit that referenced this pull request Dec 12, 2019
* VeganHunter/secondcommit:
  settings: fix issue with Recent repository count

Signed-off-by: David Aguilar <davvid@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants