tags:

views:

140

answers:

1

I'm trying to create a new repository in Github, and I'm having trouble with it's name. It's a C++ project, so I'd like to call it:

superproject++

However Github creates me a repo with a url of:

git://github.com/alanw/superproject--.git

which looks pretty bad.

Is this a constraint of Github or git itself?


I've played around with a few alternatives, but I'm not to keen on:

  • superprojectcpp
  • superprojectpp
  • superproject_cpp
  • superprojectplusplus

Any ideas?

+10  A: 

The "plus" character often holds special meaning in URLs, and can't be used unencoded. For instance, spaces are sometimes encoded with a '+', rather than the more unfriendly '%20'. Assuming that git is doing this, you'll have to pick something else. Sorry.

(superprojectplusplus isn't so bad)

Michael Petrotta
I'm guessing it's not Git, but rather GitHub's server-side software, that is altering the name.
mipadi
Yep, that seems likely, and what I meant to say.
Michael Petrotta
I believe the newest version of git supports using + in url. There was a patch to fix gtk+'s repo.
mathepic