10 votes

How could I stop ssh offering a wrong key?

For me the solution was to add a key to a list of ssh keys, with a command: ssh-add ~/.ssh/id_name_of_my_rsa_key so it could be offered when connecting to the server. After adding a ssh, it was ...
  • 201
2 votes

setting up gitolite repository hook

It turned out that the information on the page http://gitolite.com/gitolite/non-core.html#hooks is actually wrong for version 3.6. The correct setup procedure is described on the page http://gitolite....
  • 189
2 votes

Replace gitolite3 user with git

The other answer that mentions to create another user with same UID and GID is correct, however it does not provide the command. Here you go: useradd --home-dir /var/lib/gitolite3 --gid gitolite3 --no-...
  • 162
1 vote
Accepted

Gitolite 502 when trying to clone/fetch any repo over http

Well, the solution was just 1 step away. GITOLITE_HTTP_HOME parameter just needs to point to /srv/http; instead of /srv/git;. And that's it. Both gitweb and git function perfectly and respect the ...
1 vote
Accepted

Possible to rename sub domain for gitolite host?

If you change the URL of the repositories you will either have to update the URL in every checked out repo on every client, or create a redirect on gitolite.example.com to redirect requests to git....
1 vote
Accepted

Git - what is causing "warning: Negative patterns are ignored in git attributes"

Problem was solved by searching for every .gitattributes-file in the git repository. One of these Files had a row starting with an exclamation mark which wasn't commented out that was causing this ...
  • 153
1 vote

Replace gitolite3 user with git

Add another user with the same uid, gid and homedirectory. You wrote that you had seen that suggested, "but this does not give the same results as above". I don't know what problems you have ...
  • 131
1 vote
Accepted

Is there any limitations as to what can be stored in gitolite-admin?

As per the documentation, you can put hooks in the repository. The documentation doesn't make any particular warning regarding the practice, so it seems that Gitolite will happily ignore anything ...
1 vote
Accepted

Does the Gitolite @all group include the gitolite-admin repo?

Yes, it will allow access to all repos. However, you can prevent this, as documented: @secret = gitolite-admin secret-repo/..* repo @secret - = daemon option deny-rules = 1 repo @all ...
  • 98.1k
1 vote
Accepted

gitolite admin DENIED by fallthru

For anyone else coming here with a similar problem, there is a reply by gitolite author on the mailing list: https://groups.google.com/d/msg/gitolite/VRLAQaN2QoE/7EWN1I82BQAJ I suggest you add the ...
1 vote

Backing up a complete Git server

Better is subjective depending on your environment and goals. Using git or tar/gzip will produce a backup. Use the gitolite writable command to disable pushes to all repos or a specific repo when ...
1 vote

nginx separate regex for git-upload-pack and git-receive-pack

I solved this after 24 hours :( This is solution that works from me. location = /username/repo.git/info/refs { if ($args ~ service=git-upload-pack) { rewrite ^ /username/repo.git/git-...
  • 283
1 vote

I'm having some trouble setting up IP restrictions with Gitolite

Solution: 1 Make triggers/ip-limit containing #!/bin/bash # # ip-limit # UnrestrictedUserName=Me PermittedIP=127.0.0.1 if [ "$GL_USER" == "$UnrestrictedUserName" ] ; then exit 0; fi IP=$(echo ...

Only top scored, non community-wiki answers of a minimum length are eligible