From: Thiago Macieira Date: Sat, 16 Aug 2008 08:29:49 +0000 (+0200) Subject: trim the newlines X-Git-Url: http://andersk.mit.edu/gitweb/svn-all-fast-export.git/commitdiff_plain/b3b433a81f2c38d8ed64f07aa4d793627fc7411e?ds=sidebyside trim the newlines --- diff --git a/src/repository.cpp b/src/repository.cpp index 7c085ce..65beba8 100644 --- a/src/repository.cpp +++ b/src/repository.cpp @@ -54,7 +54,7 @@ void Repository::reloadBranches() startFastImport(); while (revParse.canReadLine()) { - QByteArray branchName = revParse.readLine(); + QByteArray branchName = revParse.readLine().trimmed(); branches[branchName].created = 1; fastImport.write("reset refs/heads/" + branchName +