Forum: CFEngine Help
Subject: Re: git promises
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,25954,26046#msg-26046

analogue Wrote:
-------------------------------------------------------
> Hi,
> 
> I'm looking for some bundle that would allow me to
> write promises for some git cloned repository.
> 
> e.g.:
> "/some/git/repo"
>   origin => "g...@github.com:user/repo.git",
>   branch => "version-1.2";
> 
> Has someone written something like this?
> Is it even possible to write?

It's not git, but with subversion I just use a command promise (which runs "svn 
update") in combination with a regular CFEngine file copy to get the top-level 
directory's .svn directory in place.

You could probably get a similar effect using the module protocol with a script 
in the modules directory.  Adding a version control system-type of promise 
would probably look similar to the packages promises, where the end user would 
have to define commands to fetch, update, etc.

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to