2012-11-19 14:13:57 +00:00
|
|
|
cdist-type__git(7)
|
|
|
|
==================
|
2016-06-23 14:08:59 +00:00
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
cdist-type__git - Get and or keep git repositories up-to-date
|
2012-11-19 14:13:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2012-12-05 22:07:21 +00:00
|
|
|
This cdist type allows you to clone git repositories
|
2012-11-19 14:13:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
REQUIRED PARAMETERS
|
|
|
|
-------------------
|
2016-05-20 06:50:56 +00:00
|
|
|
source
|
2012-11-19 14:13:57 +00:00
|
|
|
Specifies the git remote to clone from
|
|
|
|
|
|
|
|
|
|
|
|
OPTIONAL PARAMETERS
|
|
|
|
-------------------
|
2016-05-20 06:50:56 +00:00
|
|
|
state
|
2012-11-19 14:13:57 +00:00
|
|
|
Either "present" or "absent", defaults to "present"
|
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
branch
|
2012-12-05 22:07:21 +00:00
|
|
|
Create this branch by checking out the remote branch of this name
|
2014-02-13 09:33:24 +00:00
|
|
|
Default branch is "master"
|
2012-11-19 14:13:57 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
group
|
2013-06-16 05:40:11 +00:00
|
|
|
Group to chgrp to.
|
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
mode
|
2013-06-16 05:40:11 +00:00
|
|
|
Unix permissions, suitable for chmod.
|
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
owner
|
2013-06-16 05:40:11 +00:00
|
|
|
User to chown to.
|
|
|
|
|
2019-09-09 14:12:16 +00:00
|
|
|
recursive
|
2019-10-08 09:22:04 +00:00
|
|
|
Passes the --recurse-submodules flag to git when cloning the repository.
|
2012-11-19 14:13:57 +00:00
|
|
|
|
2019-10-08 09:22:05 +00:00
|
|
|
shallow
|
|
|
|
Sets --depth=1 and --shallow-submodules for cloning repositories with big history.
|
|
|
|
|
|
|
|
|
2012-11-19 14:13:57 +00:00
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
.. code-block:: sh
|
|
|
|
|
|
|
|
__git /home/services/dokuwiki --source git://github.com/splitbrain/dokuwiki.git
|
2012-11-19 14:13:57 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
# Checkout cdist, stay on branch 2.1
|
2019-05-09 06:26:42 +00:00
|
|
|
__git /home/nico/cdist --source git@code.ungleich.ch:ungleich-public/cdist.git --branch 2.1
|
2012-11-19 14:13:57 +00:00
|
|
|
|
|
|
|
|
2016-06-17 19:28:16 +00:00
|
|
|
AUTHORS
|
|
|
|
-------
|
|
|
|
Nico Schottelius <nico-cdist--@--schottelius.org>
|
2012-11-19 14:13:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
2016-08-10 16:15:54 +00:00
|
|
|
Copyright \(C) 2012 Nico Schottelius. You can redistribute it
|
|
|
|
and/or modify it under the terms of the GNU General Public License as
|
|
|
|
published by the Free Software Foundation, either version 3 of the
|
|
|
|
License, or (at your option) any later version.
|