git-download: Rewrite 'git-predicate' using Guile-Git.
authorLudovic Courtès <ludo@gnu.org>
Wed, 12 Sep 2018 21:56:34 +0000 (23:56 +0200)
committerLudovic Courtès <ludo@gnu.org>
Wed, 12 Sep 2018 22:20:42 +0000 (00:20 +0200)
commitaed0a594058a59bc3bb1d2686391dc0e8a181b1f
treef5915cd9f118c20a576f61881fc05a613ebc6279
parent3763e7716cc319dadb3adfbcbbc668aea96fec09
git-download: Rewrite 'git-predicate' using Guile-Git.

Fixes <https://bugs.gnu.org/27925>.

* guix/git-download.scm (files->directory-tree)
(directory-in-tree?): Remove.
(git-file-list): New procedures.
(git-predicate): Use it instead of opening a pipe to 'git'.  Remove
directory tree hack and rely exclusively on inode/device numbers.
guix/git-download.scm