mirror of
https://github.com/aljazceru/addons.git
synced 2026-01-14 10:34:22 +01:00
Modify git_pull to support reset as well as pull (#350)
* - Add git option to use reset instead of pull. - Add check that we are using the correct origin URL - Add options to specify git branch * Fix bug in git-synchronise function Modify validate-config to report when restart is required if AUTO_RESTART is false * Tidy up output * Added double quotes * Add extra line so that Travis build checks pass
This commit is contained in:
committed by
Pascal Vizeli
parent
b6cc6e0747
commit
e5e8bcd359
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Git pull",
|
||||
"version": "4.7",
|
||||
"version": "4.8",
|
||||
"slug": "git_pull",
|
||||
"description": "Simple git pull to update the local configuration",
|
||||
"url": "https://home-assistant.io/addons/git_pull/",
|
||||
@@ -13,6 +13,9 @@
|
||||
"deployment_key_protocol": "rsa",
|
||||
"deployment_user": "",
|
||||
"deployment_password": "",
|
||||
"git_branch": "master",
|
||||
"git_command": "pull",
|
||||
"git_remote": "origin",
|
||||
"repository": null,
|
||||
"auto_restart": false,
|
||||
"repeat": {
|
||||
@@ -25,6 +28,9 @@
|
||||
"deployment_key_protocol": "match(rsa|dsa|ecdsa|ed25519|rsa)",
|
||||
"deployment_user": "str",
|
||||
"deployment_password": "str",
|
||||
"git_branch": "str",
|
||||
"git_command": "match(pull|reset)",
|
||||
"git_remote": "str",
|
||||
"repository": "match((?:.+):(\/\/)?(.*?)(\\.git)(\/?|\\#[-\\d\\w._]+?))",
|
||||
"auto_restart": "bool",
|
||||
"repeat": {
|
||||
|
||||
Reference in New Issue
Block a user