]> arthur.barton.de Git - bup.git/blobdiff - cmd/split-cmd.py
test-sparse-files: use bup-python in master
[bup.git] / cmd / split-cmd.py
index abf37371973744d4f1b7f433153d2e40655e2b18..57c7392c78a57864d579e948ad42d5c3bf78f978 100755 (executable)
@@ -8,8 +8,9 @@ exec "$bup_python" "$0" ${1+"$@"}
 import os, sys, time
 
 from bup import hashsplit, git, options, client
-from bup.helpers import (handle_ctrl_c, log, parse_num, qprogress, reprogress,
-                         saved_errors)
+from bup.helpers import (add_error, handle_ctrl_c, hostname, log, parse_num,
+                         qprogress, reprogress, saved_errors,
+                         userfullname, username)
 
 
 optspec = """
@@ -179,7 +180,9 @@ if opt.tree:
 if opt.commit or opt.name:
     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)
+    userline = '%s <%s@%s>' % (userfullname(), username(), hostname())
+    commit = pack_writer.new_commit(tree, oldref, userline, date, None,
+                                    userline, date, None, msg)
     if opt.commit:
         print commit.encode('hex')