]> andersk Git - svn-all-fast-export.git/commitdiff
trim the newlines
authorThiago Macieira <thiago.macieira@trolltech.com>
Sat, 16 Aug 2008 08:29:49 +0000 (10:29 +0200)
committerThiago Macieira <thiago.macieira@trolltech.com>
Sat, 16 Aug 2008 08:29:49 +0000 (10:29 +0200)
src/repository.cpp

index 7c085ceabce94c16c3a10dd88822ccaaf7ee9158..65beba83e29a4faa101495c750f4886649a7bd34 100644 (file)
@@ -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 +
This page took 0.05871 seconds and 5 git commands to generate.