]> arthur.barton.de Git - bup.git/commit
Check save/split names early via valid_save_name
authorRob Browning <rlb@defaultvalue.org>
Sun, 22 May 2016 18:49:17 +0000 (13:49 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sun, 12 Jun 2016 16:45:01 +0000 (11:45 -0500)
commitb7699bfac2031b01fb5b40001d874b94de87d1fc
treeaa8a031363f85a2cbdfde13d19bab3c4c69e8a24
parentd926749abdfe849117bf95c721d6f1858fef1d12
Check save/split names early via valid_save_name

Previously, split and save would just wait to see if the final
update_ref failed.  Instead, check the validity of the name early,
before doing any significant work.

Thanks to vi0oss for reporting the problem.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
cmd/save-cmd.py
cmd/split-cmd.py
lib/bup/helpers.py
lib/bup/t/thelpers.py