On Wed, Dec 12, 2012 at 2:07 PM, Vassil Keremidchiev <
var...@gmail.com> wrote:
> Hello!
>
> We have problems with brackets in file names during pushing. With message
> like this:
> remote: FATAL: invalid characters in ref or filename:
> 'VREF/NAME/research/project/structs (1).cpp'
>
> Brackets are not incorrect characters for GIT or OS.
> Are there updates for Gitolite to fix this issue?
No, but it's not needed. Here's how you can solve it yourself.
Look at line 49 of src/lib/Gitolite/Rc.pm, where the variable
$REF_OR_FILENAME_PATT is defined. Replicate it at the end [1] of your
rc file (~/.gitolite.rc) then change it how you like. In your case
I'd add '()' just after the second '[' in the expression.
That's it.
[1]: i.e., *outside* the definition of the %RC hash