summaryrefslogtreecommitdiff
path: root/subversion/svn/export-cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'subversion/svn/export-cmd.c')
-rw-r--r--subversion/svn/export-cmd.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/subversion/svn/export-cmd.c b/subversion/svn/export-cmd.c
index 75b6723..45554fa 100644
--- a/subversion/svn/export-cmd.c
+++ b/subversion/svn/export-cmd.c
@@ -85,7 +85,15 @@ svn_cl__export(apr_getopt_t *os,
if (strcmp("", to) != 0)
/* svn_cl__eat_peg_revisions() but only on one target */
- SVN_ERR(svn_opt__split_arg_at_peg_revision(&to, NULL, to, pool));
+ {
+ const char *peg;
+
+ SVN_ERR(svn_opt__split_arg_at_peg_revision(&to, &peg, to, pool));
+ if (peg[0] && peg[1])
+ return svn_error_createf(SVN_ERR_ILLEGAL_TARGET, NULL,
+ _("'%s': a peg revision is not allowed here"),
+ APR_ARRAY_IDX(targets, 1, const char *));
+ }
}
SVN_ERR(svn_cl__check_target_is_local_path(to));