gitolite

Gitweb not displaying some repos

萝らか妹 提交于 2019-12-06 07:46:40
I am trying to use Gitolite + Gitweb but I am running into some problems.. My conf/gitolite.conf is the following @dataset_repos = dat1 dat2 @closedsrc_repos = cod1 cod2 @opensrc_repos = testing @admins = user1 user2 @bios = user1 user2 user3 @coders = user1 user3 repo gitolite-admin RW+ = @admins repo @opensrc_repos RW+ = @all repo @dataset_repos RW+ = @admins @bios repo @closedsrc_repos RW+ = @admins @coders When I first inserted repository code1 and code2, git told me: remote: Initialized empty Git repository in /home/git/repositories/code1.git/ remote: Initialized empty Git repository in

How to include ssh private rsa key when accessing git repo via ssh (gitosis)?

家住魔仙堡 提交于 2019-12-06 03:32:44
问题 At this moment I've got one git repo added through gitosis. The manual i used is http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way I can clone it and push in it via ssh auth with private and public keys (on gentoo), but windows users which are using Git Extensions can not. SSH keys placed in $HOME/.ssh, and ssh asks for a password. Nor password, nor passphrase (from private ssh key) don't match. Redmine needs for a bare repo, so i cloned repo from gitosis on my

Access control in Cgit

为君一笑 提交于 2019-12-06 02:49:43
问题 I would like to introduce access control to cgit once the cgi of cgit has been launched. The idea would be to list all the repos available in gitolite but enable/disable the directory listing based on user authentication. I managed to get access control before apache is executing the cgit cgi: AllowOverride None AuthType Basic AuthName "Restricted Files" AuthUserFile /var/lib/git_alfonso/passwords Options +ExecCGI Order allow,deny Allow from all Alias /cgit.png /var/www/htdocs/cgit/cgit.png

keydir entries not propagating to authorized_keys

穿精又带淫゛_ 提交于 2019-12-06 01:18:22
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 made to the authorized_keys file of the "gitolite" user, which seems wrong to me - I would expect to

gitolite post receive hook for specific bare repo

▼魔方 西西 提交于 2019-12-05 22:25:53
问题 After I push my local git repo to the server: $ git push origin master I want the bare repo on the server (after it received the push from me) to: $ cd /Users/me/Sites $ git pull $ exit I've looked at some questions here and they mention hooks in $HOME/gitolite/hooks, but here's what I'm working with: git@mm:gitolite $ pwd /Users/git/gitolite git@mm:gitolite $ ls .git/ README.txt install* CHANGELOG check-g2-compat* src/ COPYING convert-gitosis-conf* t/ How do I add a post-receive hook for a

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

倾然丶 夕夏残阳落幕 提交于 2019-12-05 13:48:07
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 already set to the right setting: root@server:~# su git git@server:~$ umask 0002 However, if I put umask

gitolite-admin clone issue

冷暖自知 提交于 2019-12-05 11:32:29
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@ubuntu-server:gitolite-admin on my client, I get fatal: 'gitolite-admin' does not appear to be a git

how do I remove a remote branch when I get an error?

笑着哭i 提交于 2019-12-05 09:55:09
I have tried the following command and it fails. git push origin :next remote: error: denying ref deletion for refs/heads/next To blah.git ! [remote rejected] next (deletion prohibited) error: failed to push some refs to 'blah.git I am using gitolite and cannot find any of this error message in the hooks. How can I disable this so that I can delete or rename this remote branch? When I run git branch -r -d origin/next, it appears to go away, but the next git pull brings it right back. Make sure in your gitolite config, you have the rewind flag on so instead of RW use RW+ . That will allow you

Gitolite with LDAP not working

点点圈 提交于 2019-12-05 06:01:33
问题 I am new to gitolite. I am trying to do a very simple test with gitolite. I have setup my repository called "test_repo". Please note that I have not modified anything else otherthan what I have stated below. I can see this repo in gitweb. This is the repo configuration repo test_repo RW+ = @all Now I want to clone this repo. I have ldap access to server. By my understanding of @all, it should allow me to do this. when I issue git clone git@myserver:repositories/test_repo.git #I know this is