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>
@@ -113,7 +113,7 @@ exit 0
(fd, path) = tempfile.mkstemp()
post_commit_msg = """#!/bin/sh
-unlink %(file)s
+rm %(file)s
""" % {'file': path}
post_commit_msg_fail = """#!/bin/sh
@@ -460,7 +460,7 @@ exit 0
(fd, path) = tempfile.mkstemp(dir=repo_dir)
root_sha = r.do_commit(