]> arthur.barton.de Git - bup.git/commitdiff
save-cmd.py, split-cmd.py: end the commit message with a newline.
authorRob Browning <rlb@defaultvalue.org>
Fri, 14 Feb 2014 18:08:47 +0000 (12:08 -0600)
committerRob Browning <rlb@defaultvalue.org>
Fri, 14 Feb 2014 18:57:12 +0000 (12:57 -0600)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
cmd/save-cmd.py
cmd/split-cmd.py

index c3eb228b261978eb86f3bb3fb3d80444c1eb5c80..0c0c3ef7039a8640b97678c561e8e19337c922c1 100755 (executable)
@@ -425,7 +425,7 @@ tree = _pop(force_tree = None,
 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')
index 7d209a86879fe6a06a91877f2ee6fb239300b856..9cb35441e591b1e9c8a1571988cdd1bd42e08b4e 100755 (executable)
@@ -161,7 +161,7 @@ if opt.verbose:
 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: