summaryrefslogtreecommitdiff
path: root/plugins/git4idea/src/git4idea/GitUtil.java
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/git4idea/src/git4idea/GitUtil.java')
-rw-r--r--plugins/git4idea/src/git4idea/GitUtil.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/git4idea/src/git4idea/GitUtil.java b/plugins/git4idea/src/git4idea/GitUtil.java
index e96d52de8ea0..3f344482f5c6 100644
--- a/plugins/git4idea/src/git4idea/GitUtil.java
+++ b/plugins/git4idea/src/git4idea/GitUtil.java
@@ -1016,6 +1016,7 @@ public class GitUtil {
@NotNull
public static String cleanupErrorPrefixes(@NotNull String msg) {
final String[] PREFIXES = { "fatal:", "error:" };
+ msg = msg.trim();
for (String prefix : PREFIXES) {
if (msg.startsWith(prefix)) {
return msg.substring(prefix.length()).trim();