{"thread":{"id":"10056","subject":"[EGIT PATCH] Won't append '/' to an empty repo relative path.","startedAt":"2007-09-28T04:39:57Z","lastAt":"2007-09-28T19:15:21Z","messageCount":2,"participants":["Jing Xue","Robin Rosenberg"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"54228","messageId":"20070928043957.GA18592@falcon.digizenstudio.com","threadId":"10056","inReplyTo":null,"subject":"[EGIT PATCH] Won't append '/' to an empty repo relative path.","fromName":"Jing Xue","fromEmail":"jingxue@digizenstudio.com","sentAt":"2007-09-28T04:39:57Z","receivedAt":"2007-09-28T04:39:57Z","isPatch":true,"sender":{"key":"jingxue@digizenstudio.com","avatar":null},"body":"\nWhen the repo relative path is empty, the extra \"/\" causes all subsequent\n\"startsWith\" tests to fail.\n\nSigned-off-by: Jing Xue <jingxue@digizenstudio.com>\n---\n .../egit/ui/internal/actions/CommitAction.java     |    6 +++++-\n 1 files changed, 5 insertions(+), 1 deletions(-)\n\ndiff --git a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/actions/CommitAction.java b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/actions/CommitAction.java\nindex 82cad58..7d638c7 100644\n--- a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/actions/CommitAction.java\n+++ b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/actions/CommitAction.java\n@@ -358,7 +358,11 @@ public class CommitAction implements IObjectActionDelegate {\n \t}\n \n \tprivate void includeList(IProject project, HashSet<String> added, ArrayList<IFile> category) {\n-\t\tString repoRelativePath = RepositoryMapping.getMapping(project).getRepoRelativePath(project) + \"/\";\n+\t\tString repoRelativePath = RepositoryMapping.getMapping(project).getRepoRelativePath(project);\n+\t\tif (repoRelativePath.length() > 0) { \n+\t\t\trepoRelativePath += \"/\";\n+\t\t}\n+\n \t\tfor (String filename : added) {\n \t\t\ttry {\n \t\t\t\tif (!filename.startsWith(repoRelativePath))\n-- \n1.5.3.2.116.ge36bb5\n"},{"id":"54287","messageId":"200709282115.22310.robin.rosenberg.lists@dewire.com","threadId":"10056","inReplyTo":"20070928043957.GA18592@falcon.digizenstudio.com","subject":"Re: [EGIT PATCH] Won't append '/' to an empty repo relative path.","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg.lists@dewire.com","sentAt":"2007-09-28T19:15:21Z","receivedAt":"2007-09-28T19:15:21Z","isPatch":true,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"fredag 28 september 2007 skrev Jing Xue:\n> \n> When the repo relative path is empty, the extra \"/\" causes all subsequent\n> \"startsWith\" tests to fail.\n> \n\nThank you.\n\nPlease cc me in the future.\n\n--- robin\n"}]}