gitolite

In gitolite, any easier way to create exceptions to users of @all?

自作多情 提交于 2019-12-08 04:57:17
问题 For instance, in the repo PRJ , there are several groups, like @A1 @A2 @B1 @B2 , UserX is in group @B1 . Now I want to add one rule for UserX , only allow him to modify the code in src/ folder, but do not apply this rule to others. Is there any easier way to implement it? @B1 = UserX UserY UserZ repo PRJ R = @A1 @A2 RW+ = @B1 @B2 RW NAME/ = @A1 @A2 @B2 UserY UserZ #RW NAME/ = @all-UserX # like this? RW NAME/src/ = UserX - NAME/ = UserX 回答1: Gitolite follows a system of rule of accumulation

gitolite post-receive hook not triggering

偶尔善良 提交于 2019-12-08 04:11:14
问题 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

gitolite-admin trigger POST_COMPILE failed

时光毁灭记忆、已成空白 提交于 2019-12-08 03:51:33
问题 I tried to add another user to my gitolite config. This is what I see in logs: 2015-06-30.23:12:12 10361 pre_git gitolite-admin marcin W any refs/.* 2015-06-30.23:12:12 10361 system,git,shell,-c,git-receive-pack '/share/Projects/githome/repositories/gitolite-admin.git' 2015-06-30.23:12:15 10361 update gitolite-admin marcin W refs/heads/master 6c3c809a3656ed37097605562ac43cfd87d251ea 1d02b5874b46463c86831fefad4225bf6b5e7f47 refs/.* 2015-06-30.23:12:17 10361 system,gitolite compile 2015-06-30

How to synchronize 2 bare repositories in Gitolite?

旧时模样 提交于 2019-12-08 03:47:27
问题 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? 回答1: 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

Cannot access gitolite repos with non-gitolite admin users

荒凉一梦 提交于 2019-12-08 02:23:58
问题 I've installed Gitolite 3.5.3 on Ubuntu 12.04. I created test repo and I can access it over ssh only with gitolite user but not others. I need to allow access other system users (user1,user,user2) or usergroup to git(push, pull merge etc) over ssh like this: git clone user1@domain.com:megaproject But I try to connect like this: git clone user@domain.com:megaproject and write correct password for this user I get: fatal: 'megaproject' does not appear to be a git repository fatal: Could not read

git:// urls with gitolite

Deadly 提交于 2019-12-07 20:09:24
问题 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.

How to disconnect Gitolite from mirroring?

若如初见. 提交于 2019-12-07 20:08:04
问题 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 and non-bare repos?

爱⌒轻易说出口 提交于 2019-12-07 13:43:30
Currently, I am tracking my repository with inotifywait . And it supports only flat files, so I created non-bare repo actually with git. But I decided to go to Gitolite and I can’t see anything about creating non-bare repo. Is there is an option? inotifywait waits for changes to files. If you want to monitor changes at the server level (where gitolite operates, behind ssh), you will need to add a non-update hook , typically a post-receive one , which will checkout the bare repo somewhere monitored by inotifywait . 来源: https://stackoverflow.com/questions/45270254/gitolite-and-non-bare-repos

keydir entries not propagating to authorized_keys

帅比萌擦擦* 提交于 2019-12-07 11:56:34
问题 I'm trying to set up a gitolite instance, and running into a problem where I follow the usual procedure to add a user (i.e. add public key file to keydir/xxx.pub; commit and push upstream) but then I'm finding that I can't clone repositories using the key I added. I've verified that the commit I've made (adding the public key) to gitolite-admin is successfully pushed upstream (i.e. to the bare gitolite-admin repo within the gitolite installation). I've noticed that no corresponding change was

What causes git's post-receive umask to be different from the user's umask?

≡放荡痞女 提交于 2019-12-07 08:42:03
问题 After some digging and help here from other people, I found out that I have a problem with the umask setting in git. What I want to achieve is that any git repo that is being checked out on my server, that the umask setting defaults to 0002. I don't want to have to configure this in every post-receive hook... I want this to be the default umask . How do I achieve that? My repositories are uploaded by logging in to ssh with the git user on the server. When I check the umask setting, this is