gitolite

gitolite post-receive hook not triggering

耗尽温柔 提交于 2019-12-07 06:55:29
In my .gitolite.rc file I have: LOCAL_CODE => "$ENV{HOME}/.gitolite/local" ..then in ENABLE section of the same file I have enabled repo-specific-hooks : ENABLE => [ # COMMANDS # These are the commands enabled by default 'help', 'desc', 'info', ..., ..., ..., 'repo-specific-hooks' ..., ..., ... ] , now, on my local machine inside gitolite-admin folder I have: gitolite-admin ... ... └──local/ └── hooks/ ├── common/ └── repo-specific/ └── message* <-- this one I want to call in a post-receive hook! , and for some repo in my gitolite-admin conf file: repo foo RW+ = @all option hook.post-receive =

gitolite-admin clone issue

a 夏天 提交于 2019-12-07 05:10:56
问题 I am going nuts with a problem cloning the gitolite-admin repository. I have followed this http://sitaramc.github.com/gitolite/install.html#migr and it went perfectly. I ran ssh-keygen -t rsa and scp ~/.ssh/id_rsa.pub morten@ubuntu-server:/tmp/morten.pub authorized_keys on the server looks like this: # gitolite start command="/home/morten/gitolite/src/gitolite-shell morten",no-port-forwarding,no-X11-forwarding,no-agent-forward$ # gitolite end Which AFAIK is okay. When I run git clone morten

Gitolite+gitweb 源码搭建及迁移

非 Y 不嫁゛ 提交于 2019-12-07 02:27:32
搭建不难迁移蛋疼 一、软件下载 gitolite下载:git clone git://github.com/sitaramc/gitolite git下载: http://git-scm.com/ gitweb下载: git clone git://git.kernel.org/pub/scm/git/git.git gitweb样式: https://github.com/kogakure/gitweb-theme git官方中文文档: git官方中文文档 gitweb官方中文文档: gitweb 二、安装 1.创建git账号 <!-- lang: shell --> groupadd git useradd -g git -d /DATA/git -s /bin/bash git (将家目录指向gitolite项目目录) ssh-keygen 2.安装并初始化gitolite gitolite/install -to /usr/local/bin/ gitolite setup -pk $HOME/scott.pub (key要以隐藏文件形式指定,默认初始化在家目录下) git clone git@IP:gitolite-admin 3.gitweb安装配置 1)使用yum安装http服务,在http.conf添加并修改启动用户为git: <VirtualHost *:80>

Gitolite VREF/NAME - what not to push

心不动则不痛 提交于 2019-12-06 15:47:55
Is it possible to for me to stop members specific group be able to do commit containing ant file other than specified Example Stop @legal from pushing commits which contains file other than static/html/legal.html RWC refs/heads/master = @legal - VREF/NAME/static/html/[^legal.html]$ = @legal VonC As I explained in " In gitolite, any easier way to create exceptions to users of @all ? ", the access rules follow a rule of accumulation . In your case, you could grant read-access for all, and deny a directory for @legal , except for one file. Something like (not tested): RW refs/heads/master = @all

How to synchronize 2 bare repositories in Gitolite?

醉酒当歌 提交于 2019-12-06 14:36:55
I have a following requirement,two remote bare repositories repository A and repository B and my aim is to sync or push repoA contents to repoB @regular intervals. I use Gitolite v3 btw, should I go for Gitolite mirroring or post-receive hooks? if its a post-receive, how to achieve it? Certainly adding a post-receive hook (see " (v3.6+) variation: repo-specific hooks ") is the easiest way. cd /path/to/your/gitolite-admin-clone mkdir -p local/hooks/repoA git push --mirror ../repoB Mirroring is mainly for synchronization between different gitolite servers (I suppose it could be setup to mirror

git:// urls with gitolite

梦想与她 提交于 2019-12-06 12:27:57
I am running a gitolite system and I currently clone like this: git clone gitolite@debainserver.local:my-project and it works fine, but I want to clone into an application that needs (no work arounds, tried them all) a git:// address. so how can I set this up. To clarify a little more look at github's addresses yourself. git clone git://github.com/git/git.git how does this work, and how can I set it up? I want to be able to go git clone git://debainserver.local:my-project and have it clone. manojlds You will have to setup git daemon appropriately to do that: http://computercamp-cdwilson-us

please help me understand gitolite users [closed]

删除回忆录丶 提交于 2019-12-06 11:37:43
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . For some reason my gitolite didn't come with a sample config file and i can't seem to find one anywhere, im sure this question is answered in that file if someone can find me a copy, please!! Anyways, the format of the gitolite config file is simple enough, here's a snip from mine gitolite conf # please see doc

Cannot find my project files on the server gitolite is running

两盒软妹~` 提交于 2019-12-06 10:51:58
I cannot find my project files on the server gitolite is running. Basically, I built a git server using gitolite on a CentOS 6.2, and I created a new repository,I can successfully clone, pull, commit and push files to this new project, but when I logged in this server, trying to find my project files on it, I could not find them. the repository is in /home/mygituser/repositories/myproject.git/ , but none of my pushed files can be found any in there. Is gitolite keeping the actual project contents somewhere else or is there a way to config and seperate project contents and its repository? This

Deploy website using Git/Gitolite [post-receive hook doesn't work properly]

谁都会走 提交于 2019-12-06 09:44:58
问题 I'm trying to deploy my website using git/gitolite. I've created a remote repository, I cloned it to my local machine. I've 2 branches Master and develop. I've created a script of post-receive hook in order to deploy each branch in the correct web directory : /var/www/<mysite>/ for branch Master [live version] /var/www/<mysite>/dev for branch develop [dev version] for that I'm using this script in .gitolite/hooks/common/post-receive file : #!/bin/bash prodroot="/var/www/<mysite>" devroot="

Is it possible to implement repo based hooks in Gitolite?

╄→гoц情女王★ 提交于 2019-12-06 08:07:41
问题 I want to implements repo based hooks in gitolite. Is it Possible ? I am using gitolite 3 (g3). 回答1: Since Gitolite 3.6+, it is possible with "repo-specific hooks": add this line in the rc file, within the %RC block, if it's not already present, or uncomment it if it's already present and commented out: LOCAL_CODE => "$rc{GL_ADMIN_BASE}/local", uncomment the ' repo-specific-hooks ' line in the rc file or add it to the ENABLE list if it doesn't exist. If your rc file does not have an ENABLE