gitolite

deploying a website/webapp via git/gitolite permissions error

ぃ、小莉子 提交于 2019-11-28 11:50:09
I've setup a development/testing server where developers can push repositories to a remote repo/webserver via gitolite/git. On the repository site everything works well and developers can use the server however: Problem: I want to deploy the code to an apache documentroot (chown'd apache:apcahe and chmod'd 755). I am following these instructions and when edit my post-receive hook as describe like so: #!/bin/sh echo "deploying to DocumentRoot" GIT_WORK_TREE=/var/www/www.example.com git checkout -f however now when I run git push from my local repo I get permissions errors like: error: git

gitolite: default remotes for new repository

好久不见. 提交于 2019-11-28 10:51:57
I've installed gitolite (locally for now, to experiment) and it seems to work, except that new repositories are not tracking the remote by default after a git clone. If I remember correctly, when I clone a repository from github.com, it's already able to push and pull. Here is what I tried: $ git clone git@localhost:sandbox Cloning into sandbox... warning: You appear to have cloned an empty repository. $ echo "A" > README $ git add README $ git commit README -m 'test' $ git push No refs in common and none specified; doing nothing. Perhaps you should specify a branch such as 'master'. fatal:

Permission problems with Git sharedRepository

时光总嘲笑我的痴心妄想 提交于 2019-11-28 09:23:46
问题 I am using Gitolite to manage my git repositories. And I also use a third-party web application to display the repositories. However each time I do a git push --all git@myserver.com:myproject the third-party web application can not have access to the repository files. So I need to run each time chmod go+rx -R /path/to/the/repository/folder to see the repository. I have set git config core.sharedRepository all but still is not remembering the permissions after git push . How can I solve this

Gitolite permissions on branches

那年仲夏 提交于 2019-11-28 06:04:05
I'm really at a loss here. I've read through quite a few examples, and tried all of them. The most basic ones work fine, but anytime I try to move to something a bit more complicated everything falls apart (even when I'm directly copying the example). Also, for the record I am on gitolite version 3 as shown by the server spam: this is gitolite@ubuntuserver running gitolite3 v3.1-2-g3eefc06 on git 1.7.9.5 All this said what I am TRYING to accomplish is (I THINK) relatively simple. I have a group of junior developers [@scrubs], and I only want them to create and commit to new branches, and be

gitolite_admin hooks and mirroring

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 05:06:39
问题 I'm wondering is there a simple way to install hooks for certain repo using gitolite_admin. Let's imagine i want to have post-update hook for repo awesome using gitolite_admin repo cloned to my workstation... #conf/gitolite_conf repo awesome RW+ = deployer contents of post-update : #!/bin/sh echo "Post receive-hook => updating Redmine repository" sudo -u deployer perl -we '`cd /home/deployer/repo/awesome.git && git fetch -q --all`' 回答1: You could also look at "repo-specific environment

W access for gitolite-admin DENIED to user

[亡魂溺海] 提交于 2019-11-28 04:35:04
问题 I've been trying very hard to get gitolite working. I used the package approach and am able to do a first "git push" with a first user to the server. After that, if if I add a key and try to push something again, I get an error saying "W access for gitolite-admin DENIED to mike"- note that it's supposed to be using the gitolite user- not my username. I guess this is because I'm adding private keys for both users in my .bash_profile. (I'm using msysgit)... Any ideas? Thanks a lot! 回答1: I guess

git ls-remote returns 128 on any repo

天大地大妈咪最大 提交于 2019-11-28 03:46:20
问题 When using git, git ls-remote returns status code 128 while any other commands work flawlessly (push/pull/clone/etc). My repos are being managed with gitolite. I'm getting this error when trying to deploy rails app for the first time. When invoking said command by hand I get standard error like this: fatal: The remote end hung up unexpectedly If this was permissions/public key issue, I wouldn't be able to push/pull to/from the repo. Why does single ls-remote command fail? 回答1: I figured it

How to tell git to use the correct identity (name and email) for a given project?

一世执手 提交于 2019-11-28 03:03:07
I use my personal laptop for both work and personal projects and I would like to use my work email address for my commits at work (gitolite) and my personal email address for the rest (github). I read about the following solutions which are all either global or temporary: git config --global user.email "bob@example.com" git config user.email "bob@example.com" git commit --author "Bob <bob@example.com>" setting one of the GIT_AUTHOR_EMAIL , GIT_COMMITTER_EMAIL or EMAIL environment variables One solution is to run manually a shell function that sets my environment to work or personal , but I am

Installing GitLab 2.1 on Centos 6

邮差的信 提交于 2019-11-28 02:15:28
Step 1: Install needed packages you will need remove installed ruby because repo version is 1.8.7 and we need 1.9 at least yum remove ruby yum install wget enable epel repos wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm rpm -Uvh epel-release-6-5.noarch.rpm install required libraries yum install readline-devel libyaml-devel gdbm-devel ncurses-devel redis openssl-devel zlib-devel gcc gcc-c++ make autoconf readline-devel curl-devel expat-devel gettext-devel tk-devel libxml2-devel libffi-devel libxslt-devel libicu-devel httpd httpd-devel gitolite git-all python

gitolite with http acces via LDAP does not pass the username

浪子不回头ぞ 提交于 2019-11-28 01:41:55
I'm trying to setup a git server with: http-access to be able to clone repositories like this: git clone http://mygitserver/repository have a web interface (gitweb), if possible with restrictions per user control access based on LDAP accounts So far I have gitweb up and running; when I access http://gitserver/ it asks ldap login and when I provide this; it shows all repositories (even gitolite-admin repository... not so good) When I try to clone, I get the error: fatal: http://gitserver/<reponame>.git/info/refs not valid: is this a git repository? I dug into it and I found out that the