mirror of
https://github.com/aljazceru/gitpear.git
synced 2025-12-17 14:14:22 +01:00
list only initilized repos
Signed-off-by: dzdidi <deniszalessky@gmail.com>
This commit is contained in:
@@ -28,7 +28,7 @@ function isShared (name) {
|
|||||||
|
|
||||||
function list (sharedOnly) {
|
function list (sharedOnly) {
|
||||||
const repos = fs.readdirSync(APP_HOME)
|
const repos = fs.readdirSync(APP_HOME)
|
||||||
if (!sharedOnly) return repos.filter(r => !r.startsWith('.'))
|
if (!sharedOnly) return repos.filter(r => !r.startsWith('.') && isInitialized(r))
|
||||||
|
|
||||||
return repos.filter(repo => isShared(repo))
|
return repos.filter(repo => isShared(repo))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user