gitolite

How do I have to configure gitweb and gitolite so they'll work together?

筅森魡賤 提交于 2019-11-29 03:41:16
问题 I am trying to make gitweb work with gitolite... but unsuccessful so far. I am working on a RedHat Linux machine. A user called git exists. gitolite is installed under: /home/git Repository location: /home/git/repositories Please note that, gitweb was working fine with plain vanilla git. Now i am trying to make it work with gitolite. Here are what my files look like: /etc/gitweb.conf $projectroot = "/home/git/repositories"; @git_base_url_list = qw(ssh://[MyHostName]/home/git/projects.list);

Deny READ of specific repository branches with gitolite

情到浓时终转凉″ 提交于 2019-11-29 03:07:26
问题 What I'm trying to achieve is the following: coworkers are in group @coworkers, clients are in group @clients. The Git repo shall be available to read and write for everyone, but there shall be special branches. i.e. I create a new branch "intern" and @coworkers shall have RW+ acces, but clients should NOT be able to R or W. I thought i can achieve that by repo myrepo - intern = @clients RW+ = @clients @coworkers But this does not work. 回答1: According to a discussion with the author of

git gitolite (v3) pre-receive hook for all commit messages

那年仲夏 提交于 2019-11-29 02:35:08
I am trying to enforce a policy where each push gets rejected when even one of the commit messages does not satisfy a rule. I've distributed a hook to the devs in order for them to use it in their local repos but I also want to enforce this when they push to the origin. I have two questions: Should I use the update hook or the pre-receive hook? (I've tried to setup an update.secondary hook but it seems to me it doesn't get fired, while a pre-receive does). How can I get the message for each commit contained in the push? More specifically, I want each commit message to have a specific "valid"

gitolite: allow to change only selelected files

帅比萌擦擦* 提交于 2019-11-29 02:26:42
How to configure git and gitolite to allow specific user to change just files that are inside specific directory? e.g. files in origin master branch: /dir1/ /dir2/file1 /dir2/file2 /dir3/file1 User kathrine , allow to change only /dir2/file1 and /dir2/file2 $kathrine: git clone git@example.com:test.git results in: /dir2/file1 /dir2/file2 Are there any per-dir directives in gitolite.conf or shall I configure git with new branch for this user? I just don't want graphics designer to have access to the source code files. 2010: For Gitolite 2 (might have changed for gitolite 3) No (meaning a

Gitolite: adding user not working, and DENIED by fallthru when cloning as root?

[亡魂溺海] 提交于 2019-11-29 00:28:27
I've managed to init an empty git repo on my NAS, and I attempted to add a new user by generating a new public key "foo.pub" and copying + pasting it into keydir/ and committing that and pushing it onto the NAS. First, the files: Here is my ~/.ssh/config file: Host root HostName iptonas User root Port 123 Host foo HostName iptonas User foo Port 123 identityfile ~/.ssh/foo Grabbed a copy of gitolite-admin from NAS: git clone ssh://root/gitolite-admin I get: Cloning into 'gitolite-admin'... remote: Counting objects: 12, done. remote: Compressing objects: 100% (9/9), done. remote: Total 12 (delta

git push origin master:refs/heads/master what does this do

烈酒焚心 提交于 2019-11-28 20:35:19
问题 When I create a new repo on my gitolite repository I always have to enter the following command before I can start pushing code to the server. git push origin master:refs/heads/master What does it do ? My guess is that is has to do with the head reference not sure. Could someone explain it to me? 回答1: There's three parts to this command: git push This invokes the push command origin This names the remote to which you are pushing. This is either one of the named remotes stored in .git/config

SSH Key asks for password

你离开我真会死。 提交于 2019-11-28 18:47:43
I stuck here now for like 2 Days a week. I've got a CentOs machine with Gitlab4 and gitolite. Everything worked fine for weeks, but suddenly last weekend something strange happend quite all binaries disappeared from the mashine ( like yum, python, ruby, mysql ect. ) i've really no clue how that can happn... After hours of reinstalling and compiling gitlab was working again. But i cant get the ssh keys between the gitlab and git user working. I already deleted and recreated the git user, set again all permissions, recreated the ssh keys, reinstalld gitolite ect. But nothing worked i keep

How to setup post-receive-email Git hook with Gitolite

落爺英雄遲暮 提交于 2019-11-28 17:58:53
I'm using post-receive-email hook from the Git distribution to send e-mails to certain users when Git repository is updated (hook invoked from post-receive ). All my repositories were managed manually. Now, I get so many repos and so many users and groups that I have to upgrade to some Git repository management system. I picked Gitolite. But I am a bit at loss on how to configure the e-mail notifications. Update: I will elaborate the question a bit: First question is: Where should I put the hook and should I change it somehow so it would work with Gitolite? Second question: The standard post

Gitolite One User - Many Keys - Different usernames

戏子无情 提交于 2019-11-28 17:24:22
问题 I have set up gitolite hopefully as per the instructions, and everything is working as planned. I am slightly unsure as to how the usernames part works, and looking through the docs hasn't helped me - perhaps I'm missing something simple. If I have two client machines, for use by one real person, but on each of those machines the usernames are, let's say dave and david. How can I organise the keys in keydir and any config file so that they both represent the same user? I get the suffix thing,

How can I host Git repositories and manage my content-hosting myself?

柔情痞子 提交于 2019-11-28 14:09:08
Things such as Github, Bitbucket, DropBox -- manages the content-hosting such as tickets and repo -hosting (DB not tickets but can be used to store repos). I want a solution where I manage myself the content-hosting of thing such as Git -repositories and tickets. Trial 0: trying to tune Git, too time-consuming I followed the instructions here but some difficulties then I followed a lot of other tutorials with much more difficulties. I got cloning with "git clone --bare xxx xxx.git; cd xxx; git update-server-info" working but unable to push things with "--shared" , got fed up to this kind of