[git-users] git hook for updating slave git repositories

2011-08-26 Thread stefasab
Hi all,

I want to update a gitorious repo whenever a new commit or tag is
applied to a master git repository.

I've been told that the best way to handle this is through a git hook,
so I wonder if someone can suggest a workflow for this and/or point to
some related documentation.

These are my requirements:
* when a new branch is created, it should be created on the slave
repo
* when a commit is done on one of the existing master repo branches,
it should be pushed on the slave repo
* same for tags

An alternative solution is to create a script which periodically
updates the slave repo (but I still don't know how to push tags),
and the git-hook solution looks more robust anyway.

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] git hook for updating slave git repositories

2011-08-26 Thread Konstantin Khomoutov
On Fri, 26 Aug 2011 07:20:02 -0700 (PDT)
stefasab stefa...@gmail.com wrote:

 I want to update a gitorious repo whenever a new commit or tag is
 applied to a master git repository.
[...]
May be you'll find this useful:

http://thread.gmane.org/gmane.comp.version-control.git/180018/focus=180086

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.