Signed-off-by: Rob Browning <rlb@defaultvalue.org>
if opt.tree:
print tree.encode('hex')
if opt.commit or opt.name:
- msg = 'bup save\n\nGenerated by command:\n%r' % sys.argv
+ msg = 'bup save\n\nGenerated by command:\n%r\n' % sys.argv
commit = w.new_commit(oldref, tree, date, msg)
if opt.commit:
print commit.encode('hex')
if opt.tree:
print tree.encode('hex')
if opt.commit or opt.name:
- msg = 'bup split\n\nGenerated by command:\n%r' % sys.argv
+ msg = 'bup split\n\nGenerated by command:\n%r\n' % sys.argv
ref = opt.name and ('refs/heads/%s' % opt.name) or None
commit = pack_writer.new_commit(oldref, tree, date, msg)
if opt.commit: