Configure each Git repository in a separate <GitRepo>
element. Give each repo a unique name using the id attribute,
for example id="xoom-revisions".
The Git template from the configuration file looks as follows:
<GitRepo>
<ShouldClone>false</ShouldClone>
<RemoteUrl>git@host-url:repo-name</RemoteUrl>
<LocalRepo>C:\Path\To\Local\Repo</LocalRepo>
<ShouldPullAndPush>true</ShouldPullAndPush>
…
The body of
<GitRepo> contains the following elements:
- <ShouldClone>: if true, the local repository will be
cloned from the remote repository if it doesn't exist at the time that the script is
run.
- <RemoteUrl>: specifies the URL of the remote
repository from which the local repository will be cloned (if cloning is enabled) and
which will be used to pull and push the configuration information (if pulling and
pushing are enabled, see below).
- <LocalRepo>: the path to the location of the local
repository. If cloning is not enabled, then the repository must be created before the
script is run.
- <ShouldPullAndPush>: if true, the information will be
pulled from the remote repository (see <RemoteUrl>
above) before Xoom queries are run, and pushed to the remote repository after
the commit.