Revert the prohibition because all releases up to now have allowed
"/", and so that's nothing new. Disabling "/" in 0.26 would be a
regression, and one we're not ready to commit to -- in fact, we may
eventually do the opposite, and add comprehensive support for "/".
This reverts commit
52a98179490c6ccb990e221bbdeb511f1de59de4.
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
if is_reverse and opt.remote:
o.fatal("don't use -r in reverse mode; it's automatic")
-if opt.name:
- if opt.name.startswith('.'):
- o.fatal('backup set names cannot start with "."')
- if '/' in opt.name:
- o.fatal('backup set names cannot contain "/"')
+if opt.name and opt.name.startswith('.'):
+ o.fatal("'%s' is not a valid branch name" % opt.name)
refname = opt.name and 'refs/heads/%s' % opt.name or None
if opt.remote or is_reverse:
cli = client.Client(opt.remote)