git gui: cope with duplicates in _get_recentrepo
authorPhilip Oakley <philipoakley@iee.org>
Mon, 14 Dec 2015 11:19:32 +0000 (11:19 +0000)
committerPhilip Oakley <philipoakley@iee.org>
Fri, 20 Jan 2017 21:03:34 +0000 (21:03 +0000)
_get_recentrepo will fail if duplicate invalid entries are present
in the recentrepo config list. The previous commit fixed the
'git config' limitations in _unset_recentrepo by unsetting all config
entries, however this code would fail on the second attempt to unset it.

Refactor the code to pre-sort and de-duplicate the recentrepo list to
avoid a potential second unset attempt.

Signed-off-by: Philip Oakley <philipoakley@iee.org>
No differences found