Skip to content

Conversation

@dariom
Copy link
Contributor

@dariom dariom commented Oct 12, 2022

This PR resolves a small bug in the updatenotification module if a local git repo is ahead of the remote (for example I have made local commits for my personal needs).

Currently, if git status -sb reports a status like: ## master...origin/master [ahead 2] then updatenotification treats this as though it's "behind".

This PR uses a single Regex to match git status -sb output and uses capture groups to extract info to populate the gitInfo object to avoid needing to do string manipulation to extract this information.

Dario Mratovich added 2 commits October 12, 2022 16:42
… remote

Update Regex to match status info.
Only notify when repo's commits are 'behind'.
Use Regex capturing groups to extract git info.
Forgot to run prettier after updating CHANGELOG 🤦🏼
@rejas rejas requested a review from khassel October 12, 2022 09:12
@khassel khassel merged commit 1eb2965 into MagicMirrorOrg:develop Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants