We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 13843b3 + 9edbcf8 commit 38a1db5Copy full SHA for 38a1db5
src/main.cpp
@@ -55,12 +55,18 @@ QHash<QByteArray, QByteArray> loadIdentityMapFile(const QString &fileName)
55
// Support git-svn author files, too
56
// - svn2git native: loginname Joe User <user@example.com>
57
// - git-svn: loginname = Joe User <user@example.com>
58
- int rightspace = space;
59
- if (line.indexOf(" = ") == space)
60
- rightspace += 2;
+ int rightspace = line.indexOf(" = ");
+ int leftspace = space;
+ if (rightspace == -1) {
61
+ rightspace = space;
62
+ } else {
63
+ leftspace = rightspace;
64
+ rightspace += 2;
65
+ }
66
67
QByteArray realname = line.mid(rightspace).trimmed();
- line.truncate(space);
68
+ line.truncate(leftspace);
69
+
70
result.insert(line, realname);
71
};
72
file.close();
0 commit comments