Merge pull request #2100 from Bee-Mar/develop

Added --dry-run to fetch call within updatednotification module
This commit is contained in:
Michael Teeuw 2020-08-13 21:42:38 +02:00 committed by GitHub
commit fd934c0514
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -11,6 +11,9 @@ _This release is scheduled to be released on 2020-10-01._
### Added ### Added
- `--dry-run` option adde in fetch call within updatenotification node_helper. This is to prevent
MagicMirror from consuming any fetch result. Causes conflict with MMPM when attempting to check
for updates to MagicMirror and/or MagicMirror modules.
- Test coverage with Istanbul, run it with `npm run test:coverage`. - Test coverage with Istanbul, run it with `npm run test:coverage`.
- Add lithuanian language. - Add lithuanian language.
- Added support in weatherforecast for OpenWeather onecall API. - Added support in weatherforecast for OpenWeather onecall API.

View File

@ -72,7 +72,7 @@ module.exports = NodeHelper.create({
performFetch: function () { performFetch: function () {
var self = this; var self = this;
simpleGits.forEach((sg) => { simpleGits.forEach((sg) => {
sg.git.fetch().status((err, data) => { sg.git.fetch(["--dry-run"]).status((err, data) => {
data.module = sg.module; data.module = sg.module;
if (!err) { if (!err) {
sg.git.log({ "-1": null }, (err, data2) => { sg.git.log({ "-1": null }, (err, data2) => {