Mercurial > kallithea
changeset 6257:9e750b37b391
util: fix missing isfile in get_filesystem_repos after 186bf5fee0a1
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Tue, 18 Oct 2016 23:29:23 +0200 |
parents | 0f1f5c6bcaa1 |
children | b7654d1675da |
files | kallithea/lib/utils.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/utils.py Sat Oct 08 22:07:55 2016 +0200 +++ b/kallithea/lib/utils.py Tue Oct 18 23:29:23 2016 +0200 @@ -231,7 +231,8 @@ if (isdir(cur_path, '.hg') or isdir(cur_path, '.git') or isdir(cur_path, '.svn') or - isdir(cur_path, 'objects') and (isdir(cur_path, 'refs') or isfile(cur_path, 'packed-refs'))): + isdir(cur_path, 'objects') and (isdir(cur_path, 'refs') or + os.path.isfile(os.path.join(cur_path, 'packed-refs')))): if not os.access(cur_path, os.R_OK) or not os.access(cur_path, os.X_OK): log.warning('ignoring repo path without access: %s', cur_path)