[PATCH] allow pathspec to end with a slash