git_pull: bugfixes and enhancements (#386)

* enhancement, bugfixes, version bump

* fix travis ci errors

* Fixes #389 and enhancement: git_prune

* add double-quoting/fix travis

* Bugfix after fixing CI errors

* check_config bugfix: always do a git fetch

* Bugfix: always fetch; Code Optimization

* Code Optimization

* Prune not only when switching branch

* Verbosity
This commit is contained in:
Censored3
2018-08-29 00:30:21 +02:00
committed by Pascal Vizeli
parent d7b34cfdc1
commit 193b988174
3 changed files with 39 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "Git pull",
"version": "4.8",
"version": "4.9",
"slug": "git_pull",
"description": "Simple git pull to update the local configuration",
"url": "https://home-assistant.io/addons/git_pull/",
@@ -16,6 +16,7 @@
"git_branch": "master",
"git_command": "pull",
"git_remote": "origin",
"git_prune": false,
"repository": null,
"auto_restart": false,
"repeat": {
@@ -31,6 +32,7 @@
"git_branch": "str",
"git_command": "match(pull|reset)",
"git_remote": "str",
"git_prune": "bool",
"repository": "match((?:.+):(\/\/)?(.*?)(\\.git)(\/?|\\#[-\\d\\w._]+?))",
"auto_restart": "bool",
"repeat": {