Documentation ¶
Overview ¶
Package repository contains types and function for git repository interaction.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneOrPull ¶
CloneOrPull runs a git clone or a git pull in a unit of the app.
First it tries to clone, and if the clone fail (meaning that the repository is already cloned), it pulls changes from the bare repository.
func GetReadOnlyUrl ¶
GetReadOnlyUrl returns the url for communication with git-daemon.
func GitServerUri ¶
func GitServerUri() string
joins the protocol, server and port together and returns.
This functions makes uses of three configurations:
- git:host
- git:protocol
- git:port (optional)
If some of the required configuration is not found, this function panics.
Types ¶
Click to show internal directories.
Click to hide internal directories.