diff --git a/git_pull/CHANGELOG.md b/git_pull/CHANGELOG.md index 784fe26..da05da7 100644 --- a/git_pull/CHANGELOG.md +++ b/git_pull/CHANGELOG.md @@ -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 diff --git a/git_pull/config.json b/git_pull/config.json index 1cc5801..d743b38 100644 --- a/git_pull/config.json +++ b/git_pull/config.json @@ -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/", diff --git a/git_pull/run.sh b/git_pull/run.sh index eb1b582..23aa26c 100644 --- a/git_pull/run.sh +++ b/git_pull/run.sh @@ -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