Several Unix-like systems (eg. OpenBSD) don't have 'unlink' utility. 'rm' does
exactly the same job, so using 'rm' instead of 'unlink' makes dulwich tests
more portable.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
(fd, path) = tempfile.mkstemp()
post_commit_msg = """#!/bin/sh
-unlink %(file)s
+rm %(file)s
""" % {'file': path}
post_commit_msg_fail = """#!/bin/sh
(fd, path) = tempfile.mkstemp(dir=repo_dir)
post_commit_msg = """#!/bin/sh
-unlink %(file)s
+rm %(file)s
""" % {'file': path}
root_sha = r.do_commit(