gitolite

Auto deployment PHP script using Gitolite

情到浓时终转凉″ 提交于 2019-12-03 21:15:23
i would like to setup auto deployment script to my testing server locally. i'm using gitolite on ubuntu desktop 11.04. i install gitolite using apt-get install gitolite, so it is create user gitolite and group gitolite. Now i setup my testing webserver using apache which has user and group ivan:ivan, and do git clone under that username. so all the files and folder have the same file owner ivan:ivan. i setup post-receive hooks under /var/lib/gitolite/repository/testrepo/hooks/ and have this script inside: #!/bin/bash #CONFIG LIVE="/home/ivan/public_html/testrepo" read oldrev newrev refname if

How to keep/maintain public and private code in the same repository? (at repository hostings)

二次信任 提交于 2019-12-03 20:44:59
I'm working on my own project which has two parts: A. kernel/generic code (public part) B. code which works with proprietary protocol etc (private part, available for me and a few authorized persons) I want repository hosting (maybe github, assembla, ...) which allows working in public and private branches in the same repository. I don't want two repositories because I'm actively working on both parts and I want to avoid diverged repositories. Which solution is available for me? VonC which allows working in public and private branches in the same repository. That doesn't seem compatible with

Getting fatal: object is corrupted when pushing to a remote repo

ε祈祈猫儿з 提交于 2019-12-03 18:05:56
问题 I've got a server with Gitolite installed to host my repos I created a new repo yesterday and today when I tried to push more commits to the server I am getting: fatal: object 86eeaa0c5a154ff3df34d6a43669930b9c6c7f59 is corrupted error: unpack failed: unpack-objects abnormal exit error: failed to push some refs to As the repo is pretty new I wasn't too bothered about losing previous commits so I have deleted both my local and remote repo but still getting the same error. As I say I'm not too

How to install hooks in gitolite

≡放荡痞女 提交于 2019-12-03 12:28:01
I've read all the documentation about hooks , similar questions and a lot of code but I can't track where is the error in my procedure. I need to install a simple hook in my gitolite installation (made with an rpm package on CentOS) so here is what I did: To install gitolite (some time ago): Installed the rpm package # su - gitolite $ gl-setup /tmp/fabio.pub (as gitolite user) Now to install the hook: Created a sample file post-update with the hook code in ~gitolite/.gitolite/hooks/common and chmod +x on it run gl-setup /tmp/fabio.pub again as stated here But nothing happened, the exit status

git push origin DENIED by fallthru, hook declined: gitolite

久未见 提交于 2019-12-03 10:42:23
I am having a problem pushing with git using Gitolite. When I try this: git push origin :refs/tags/deployment I get this error: remote: D NAME/install.py repos michael DENIED by fallthru remote: error: hook declined to update refs/tags/deployment To gitolite@admin:repos ! [remote rejected] deployment (hook declined) error: failed to push some refs to 'gitolite@admin:repos' I have given the group deploy [of which the user michael is a member of] permission to delete branches in the Gitolite config: @deply = michael repo repos RWD = @deply I have seen this post: " Unable to push in Git. Why? "

Gitolite git clone requires ssh password

喜欢而已 提交于 2019-12-03 09:14:18
using Gitolite on a Ubuntu server. Have a project im working on that i need a particular syntax for the git command. Works great: git clone gitolite@servername:testing.git Asks for a password git clone ssh://gitolite@servername/home/gitolite/repositories/testing.git Ran from the same box, one after another. I can put in the password and it works. But I need to automatically work. Sounds like a problem with ssh pub/private keys. Any ideas? Update : Was a problem with file permissions. Not sure the difference between the too commands. But the /var/log/auth.log showed some errors You need to

How to disconnect Gitolite from mirroring?

匿名 (未验证) 提交于 2019-12-03 09:02:45
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Running Ubunutu and gitolite3 v3.6.4-19-g8de9b8d on git 1.7.9.5 I have configured 1 master and 2 slaves. I am having issues with mirroring. What I want to do is to stop the mirroring so I can push some configuration to gitolite-admin repo on the 2 slaves (I need to replace the pub keys). However when I try to push to the slave I get error of: "C:\Program Files (x86)\Git\bin\git.exe" push --recurse-submodules=check --progress "origin" refs/heads/master:refs/heads/master FATAL: server2: pushing 'gitolite-admin' to slave 'server2' not allowed

gitolite push error -> remote: ENV GL_RC not set

匿名 (未验证) 提交于 2019-12-03 08:36:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to push content from a workstation to a server. But it gives me an error. Please look at the following for command and error: Administrator@ganesh ~/testing $ git push origin master Counting objects: 3, done. Writing objects: 100% (3/3), 241 bytes, done. Total 3 (delta 0), reused 0 (delta 0) remote: ENV GL_RC not set remote: BEGIN failed--compilation aborted at hooks/update line 20. remote: error: hook declined to update refs/heads/master To git@ganesh:repositories/testing ! [remote rejected] master -> master (hook declined)

Gitolite git clone error

匿名 (未验证) 提交于 2019-12-03 08:35:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to setup gitolite on my server (Macos server). I followed the instructions in the INSTALL document found here : http://sitaramc.github.com/gitolite/doc/1-INSTALL.html I installed the root method. I got everything setup (ssh pubkey authentication and default gitolite setup) $ssh git@server info hello admin, the gitolite version here is v1.5.9.1-27-gb97115f the gitolite config gives you the following access: R W gitolite-admin @R_ @W_ testing According to installation instruction I should be able to checkout a repository. But when

Can GitoLite and Git Using LDAP and NOT SSH keys

流过昼夜 提交于 2019-12-03 08:25:39
my firm is looking at using git and gitolite but does not want to use SSH keys and work like to use LDAP.. Can this be done?? I never seen this done.. everyplace I have this setup with always used SSH keys VonC Yes, you can do it without any issue. You simply need your Apache to do the authentication part (since gitolite is only an authorization layer ), and call gitolite-shell instead of git-http-backend , with REMOTE_USER set by Apache (and used by gitolite-shell ). See a detailed example in " Git with Ldap on Ubuntu with Apache ". The main part of the httpd.conf being: SetEnv GIT_PROJECT