gitlabhq/gitlabhq — Issue #493: Hardcoded SSH username on project create/edit form
Author: akuznecov
Created: 2012-03-01 17:43:35+00:00
State: open

Hello

Im using not default (not proposed by wiki/manuals) username for serving repositories through SSH.
So, my shell user not "git" and urls looks like gitlab@server.name:reponame

But on project creation/edit page GitLab displays a default username.
http://i.imgur.com/QHUMa.png
I have checked a code and found that it is hardcoded:
```
$ grep -r 'git@' *
app/views/projects/_form.html.haml: %span.add-on= "git@#{GIT_HOST["host"]}:"
app/views/admin/projects/_form.html.haml: %span.add-on= "git@#{GIT_HOST["host"]}:"
```

After project creation it shown well:
http://i.imgur.com/SJ3Yd.png

I think username should be also taken from config/gitlab.yml : git_user