Update addon/git_pull for PR home-assistant/hassio-addons#386 (#6073)

This commit is contained in:
Censored3 2018-09-01 23:54:46 +02:00 committed by Fabian Affolter
parent 6f413c66dc
commit 4611a4349d

View File

@ -18,6 +18,7 @@ Load and update configuration files for Home Assistant from a [Git](https://git-
"git_branch": "master", "git_branch": "master",
"git_command": "pull", "git_command": "pull",
"git_remote": "origin", "git_remote": "origin",
"git_prune": "false",
"repeat": { "repeat": {
"active": false, "active": false,
"interval": 300 "interval": 300
@ -38,8 +39,9 @@ Load and update configuration files for Home Assistant from a [Git](https://git-
``` ```
- **repository** (*Required*): Git URL to your repository (make sure to use double quotes). You have to add `.git` to your GitHub repository URL (see example configuration) - **repository** (*Required*): Git URL to your repository (make sure to use double quotes). You have to add `.git` to your GitHub repository URL (see example configuration)
- **git_branch** (*Required*): Branch name of the Git repo, leave this as 'master' if you are unsure. - **git_branch** (*Required*): Branch name of the Git repo. If left empty, the currently checked out branch will be updated. Leave this as 'master' if you are unsure.
- **git_remote** (*Required*): Name of the tracked repository. Leave this as `origin` if you are unsure. - **git_remote** (*Required*): Name of the tracked repository. Leave this as `origin` if you are unsure.
- **git_prune** (*Required*): If set to true, the add-on will cleanup branches that are deleted on the remote repository, but still have cached entries on the local machine. Leave this as `false` if you are unsure.
- **git_command** (*Required*): Must be either `pull` or `reset`. Leave this as `pull` if you are unsure. - **git_command** (*Required*): Must be either `pull` or `reset`. Leave this as `pull` if you are unsure.
* **pull**: Incorporates changes from a remote repository into the current branch. Will preserve any local changes to tracked files. * **pull**: Incorporates changes from a remote repository into the current branch. Will preserve any local changes to tracked files.