Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to have a SparkleShare repository that has spaces in the names, but it seems that gitolite doesn't like my config file to have spaces in the names.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Gitolite (v2 or v3) doesn't seem to support repo names with spaces in it.

If you look at Store.pm:

# normal repos
my @repos = grep { $_ =~ $REPONAME_PATT and not /^@/ } sort keys %repos;

With Rc.pm

$REPONAME_PATT = qr(^\@?[0-9a-zA-Z][0-9a-zA-Z._\@/+-]*$);

So no space in that pattern, when adding or removing repos in Gitolite.

share|improve this answer
1  
I wonder if changing that regex is all that would need to be done, or if that would break things... –  Bryan Agee May 1 '12 at 22:08
    
@BryanAgee It's possible, but I haven't tested it. –  VonC May 2 '12 at 6:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.