Username and password support for git_pull addon (#217)

* Add user/password support to git pull.

This can be used for private repositories that don't support ssh.
Ex: https://cloud.google.com/source-repositories/docs/

* Remove unnecessary err redirection.

* Bump git_pull version to 3.1

* Update config.json

* Update CHANGELOG.md

* Update CHANGELOG.md

* address commands
This commit is contained in:
Raiford
2018-01-19 02:56:58 -08:00
committed by Pascal Vizeli
parent dfda13c24d
commit a3adccafa7
3 changed files with 48 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "Git pull",
"version": "3.0",
"version": "4.0",
"slug": "git_pull",
"description": "Simple git pull to update the local configuration",
"url": "https://home-assistant.io/addons/git_pull/",
@@ -11,6 +11,8 @@
"options": {
"deployment_key": [],
"deployment_key_protocol": "rsa",
"deployment_user": "",
"deployment_password": "",
"repository": null,
"auto_restart": false,
"repeat": {
@@ -21,6 +23,8 @@
"schema": {
"deployment_key": ["str"],
"deployment_key_protocol": "match(rsa|dsa|ecdsa|ed25519|rsa)",
"deployment_user": "str",
"deployment_password": "str",
"repository": "match((?:.+):(\/\/)?(.*?)(\\.git)(\/?|\\#[-\\d\\w._]+?))",
"auto_restart": "bool",
"repeat": {