mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-29 20:49:54 +00:00
Merge pull request #555 from qistoph/remoteonly
Check updates (in updatenotification) only for repos with remote
This commit is contained in:
commit
eade89da48
@ -29,7 +29,18 @@ module.exports = NodeHelper.create({
|
||||
continue;
|
||||
}
|
||||
|
||||
simpleGits.push({"module": moduleName, "git": SimpleGit(moduleFolder)});
|
||||
var res = function(mn, mf) {
|
||||
var git = SimpleGit(mf);
|
||||
git.getRemotes(true, function(err, remotes) {
|
||||
if (remotes.length < 1 || remotes[0].name.length < 1) {
|
||||
// No valid remote for folder, skip
|
||||
return;
|
||||
}
|
||||
|
||||
// Folder has .git and has at least one git remote, watch this folder
|
||||
simpleGits.push({"module": mn, "git": git});
|
||||
});
|
||||
}(moduleName, moduleFolder);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user