diff options
author | Peter Smit <peter@smitmail.eu> | 2015-02-09 12:27:15 +0200 |
---|---|---|
committer | Peter Smit <peter@smitmail.eu> | 2015-02-09 12:27:15 +0200 |
commit | aa35be975f5058e5e4ba4d73725f6e16783ec69a (patch) | |
tree | 31cebb5b67cc9da93fe4e27d5ad7f4233262845f /models/publickey.go | |
parent | 6ed96b7a20b8b53ef958808cc414d59b72b7fa5c (diff) | |
download | gitea-aa35be975f5058e5e4ba4d73725f6e16783ec69a.tar.gz gitea-aa35be975f5058e5e4ba4d73725f6e16783ec69a.zip |
Fix #922
Diffstat (limited to 'models/publickey.go')
-rw-r--r-- | models/publickey.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/publickey.go b/models/publickey.go index b1c7b62449..383b85b634 100644 --- a/models/publickey.go +++ b/models/publickey.go @@ -29,7 +29,7 @@ import ( const ( // "### autogenerated by gitgos, DO NOT EDIT\n" - _TPL_PUBLICK_KEY = `command="%s serv --config='%s' key-%d",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty %s` + "\n" + _TPL_PUBLICK_KEY = `command="%s serv key-%d --config='%s'",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty %s` + "\n" ) var ( @@ -98,7 +98,7 @@ func (k *PublicKey) OmitEmail() string { // GetAuthorizedString generates and returns formatted public key string for authorized_keys file. func (key *PublicKey) GetAuthorizedString() string { - return fmt.Sprintf(_TPL_PUBLICK_KEY, appPath, setting.CustomConf, key.Id, key.Content) + return fmt.Sprintf(_TPL_PUBLICK_KEY, appPath, key.Id, setting.CustomConf, key.Content) } var ( |