mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 13:44:20 +01:00
git_pull: fix for home-assistant/hassio-addons#480 (#481)
* git_pull: fix git diff command - #480 * git_pull: version bump & update CHANGELOG
This commit is contained in:
committed by
Pascal Vizeli
parent
65082b5361
commit
96c9f0c020
@@ -1,5 +1,8 @@
|
||||
# Changelog
|
||||
|
||||
## 6.1
|
||||
- Bugfix in git diff command while comparing branches
|
||||
|
||||
## 6
|
||||
- Allow to disable Home Assistant restart for specific file changes
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Git pull",
|
||||
"version": "6",
|
||||
"version": "6.1",
|
||||
"slug": "git_pull",
|
||||
"description": "Simple git pull to update the local configuration",
|
||||
"url": "https://home-assistant.io/addons/git_pull/",
|
||||
|
||||
@@ -179,7 +179,7 @@ function validate-config {
|
||||
if hassio homeassistant check; then
|
||||
if [ "$AUTO_RESTART" == "true" ]; then
|
||||
DO_RESTART="false"
|
||||
CHANGED_FILES=$(git diff "$OLD_COMMIT" .. "$NEW_COMMIT" --name-only)
|
||||
CHANGED_FILES=$(git diff "$OLD_COMMIT" "$NEW_COMMIT" --name-only)
|
||||
echo "Changed Files: $CHANGED_FILES"
|
||||
if [ -n "$RESTART_IGNORED_FILES" ]; then
|
||||
for file in $CHANGED_FILES; do
|
||||
|
||||
Reference in New Issue
Block a user