Git hooks script in bare repository

179 views
Skip to first unread message

ynoslenav

unread,
Aug 29, 2012, 11:09:56 AM8/29/12
to trac-...@googlegroups.com
To make connections between commits and tickets in which repository do i have to put the scripts post-receive and post-commit? bare or local repository or other?

thanks

Matthew Caron

unread,
Aug 29, 2012, 11:20:32 AM8/29/12
to trac-...@googlegroups.com
I'd think it would depend on your setup. Where I work, we put them in
the repository on the server to which everyone pushes changes and
nightly builds are pulled from.

--
Matthew Caron, Software Build Engineer
Sixnet, a Red Lion business | www.sixnet.com
+1 (518) 877-5173 x138 office

ynoslenav

unread,
Aug 29, 2012, 12:23:52 PM8/29/12
to trac-...@googlegroups.com, matt....@redlion.net
Based on the configuration file below do you advise me to put it in the bare or local repository? My trac.ini file is configured to use the bare repository; The trac and bare repository are on the same server.  

Thanks!

[git]
cached_repository = false
git_bin = /usr/bin/git
git_fs_encoding = utf-8
persistent_cache = true
shortrev_len = 6
trac_user_rlookup = true
use_committer_id = true
use_committer_time = false
wiki_shortrev_len = 7
[repositories]
.alias = mybase
base.description = This is the ''main'' project mybase.
base.dir = /opt/git/mybase.git
base.hidden = true
base.type = git
base.url =

Matthew Caron

unread,
Aug 29, 2012, 1:18:50 PM8/29/12
to ynoslenav, trac-...@googlegroups.com, matt....@hq.corp.redlion.net
On 08/29/2012 12:23 PM, ynoslenav wrote:
> Based on the configuration file below do you advise me to put it in the
> bare or local repository? My trac.ini file is configured to use the bare
> repository; The trac and bare repository are on the same server.

Assuming that everyone pushes to the "bare" repository, then I'd think
that is where you want to put it.

ynoslenav

unread,
Aug 29, 2012, 1:39:56 PM8/29/12
to trac-...@googlegroups.com, ynoslenav, matt....@hq.corp.redlion.net, matt....@redlion.net
Thank you. I'll put on my bare repository that post-receive script: 

Reply all
Reply to author
Forward
0 new messages