From 9a977a23dda52f4df942252fb64d10fd1d093d1a Mon Sep 17 00:00:00 2001 From: Andre Hartmann Date: Fri, 3 Mar 2017 06:51:48 +0100 Subject: [PATCH] Gerrit: Assure trailing newline when saving .netrc Change-Id: I919868c0d58f1ac14c1ae15479b11ce15043e042 Reviewed-by: Orgad Shaneh --- src/plugins/git/gerrit/authenticationdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/git/gerrit/authenticationdialog.cpp b/src/plugins/git/gerrit/authenticationdialog.cpp index 42533dbc1c9..c9125107142 100644 --- a/src/plugins/git/gerrit/authenticationdialog.cpp +++ b/src/plugins/git/gerrit/authenticationdialog.cpp @@ -137,7 +137,7 @@ bool AuthenticationDialog::setupCredentials() out << line << endl; } if (!found) - out << "machine " << m_server->host << " login " << user << " password " << password; + out << "machine " << m_server->host << " login " << user << " password " << password << endl; Utils::FileSaver saver(m_netrcFileName, QFile::WriteOnly | QFile::Truncate | QFile::Text); saver.write(netrcContents.toUtf8()); return saver.finalize();