Skip to content
Snippets Groups Projects
Commit 53b4f376 authored by Florian Heck's avatar Florian Heck
Browse files

Only test for full matches on remote names

parent 87648126
No related branches found
No related tags found
No related merge requests found
......@@ -532,7 +532,7 @@ public class LocalRepository extends Repository {
return false;
}
return res.getStdOutTrimmed().contains(name);
return Arrays.stream(res.getStdOutTrimmed().split("\\R")).anyMatch(remote -> remote.equals(name));
}
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment