New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some fixes and improvements #59
Conversation
The regexp will remove command or other options at the start of each lines from the authkeys file. The remaining part of the line should be the public key only without any other ssh options. Note that it will only detect on authorized_keys file for protocol 2 (but who use protocol 1 anymore?)
Added config key GIT_BINDIR to support custom Git location. The content of this key is added to the PATH environment variable if it's present in the configuration file.
The previous version as a shell script spawned too many processes. In a shared hosting env with limits on the number of process, a perl-only solution would be less prone to hit this limit. Furthermore, I believe this is more efficient than a shell script.
Implements support multi-valued keys in repository config, for instance "gitweb.url". The keys that are treated as multi-valued must be declared in the rc file in the GIT_MULTI_CONFIG_KEYS value (which use the same syntax as GIT_CONFIG_KEYS) Also fixes a "bug" in git: removing the last value of a section does not remove the section itself; adding again a key to this section duplicates the section name (or triplicate, or etc.)
I am not in a position to vote for nor merge this, but if I were, I'd also ask for updates to the parts of the documentation that were affected by these changes. Most notably how the multi key config works, and how to specify the custom git location. +1 for the inclusion of tests, though :) |
Please note that sitaram does not accept/read Pull Requests made through the github interface. The Wiki for this repository contains directions on proper channels to discuss features / submti patches, etc. |
I admit not being a great writer of documentation. :) If the changes are accepted, I'll see if I can write something. I know sitaram does not accept pull request, I posted to the mailing list at the same time. I have a different view than his about github and others may be only monitoring the github repository. So I decided to open the request. |
The description file was not removed due to variable not being expanded.
Perl was complaining with "WARNING: Using a hash as a reference is deprecated"
I think we discussed this on the ML, IIRC |
I made a fix for Gitolite:
I also made some improvements:
There's also 5566d5e when I merged code from 3e87a082
Pick any of those if you find they are interesting.