chiark / gitweb /
git-debrebase: Replace one open-coded hash-object with hash_commit
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 28 Jun 2019 23:26:32 +0000 (00:26 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 28 Jun 2019 23:59:36 +0000 (00:59 +0100)
No functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
git-debrebase

index 7dde1e746f846279d026e6119f6a9d84dbfba224..e307af843da884e4d5e8b39fd9fec8f68465bc30 100755 (executable)
@@ -730,7 +730,7 @@ sub merge_series_patchqueue_convert ($$$) {
            open C, ">", "../mcommit" or confess "$!";
            print C $commit or confess "$!";
            close C or confess "$!";
-           $build = cmdoutput @git, qw(hash-object -w -t commit ../mcommit);
+           $build = hash_commit '../mcommit';
        }
        $result = $build;
        mwrecknote($wrecknotes, 'merged-result', $result);