Oleg Pykhalov
ffc3fcade3
git: Call 'url-cache-directory' outside 'update-cached-checkout'.
...
* guix/git.scm (update-cached-checkout): Call 'url-cache-directory' in
'cache-directory' key argument.
(latest-repository-commit): Call 'url-cache-directory'.
2018-07-13 16:24:48 +03:00
Ludovic Courtès
9188198692
git: Increase modularity and expose 'update-cached-checkout'.
...
* guix/git.scm (repository->head-sha1, copy-to-store): Remove.
(switch-to-ref): Return the OID of OBJ.
(update-cached-checkout): New procedure, with code from
'latest-repository-commit'.
(latest-repository-commit): Use it.
2018-04-02 23:16:30 +02:00
Ludovic Courtès
dfca24180c
git: 'latest-repository-commit' calls 'repository-close!'.
...
* guix/git.scm (latest-repository-commit): Call 'repository-close!'
when it exists.
2018-03-26 00:15:52 +02:00
Ludovic Courtès
95bd9f65a8
git: 'switch-to-ref' accepts short commit IDs.
...
Fixes <https://bugs.gnu.org/30716 >.
Reported by Björn Höfling <bjoern.hoefling@bjoernhoefling.de>.
* guix/git.scm (switch-to-ref): When REF is a commit, check the length
of COMMIT and use 'object-lookup-prefix' if available.
2018-03-18 00:02:06 +01:00
Ludovic Courtès
fe9b3ec3ee
git: Do not add '.git' to the store.
...
This makes 'latest-repository-commit' significantly more efficient and
reduces disk usage in the store.
* guix/git.scm (copy-to-store)[dot-git?]: New procedure.
Pass it as the #:select? argument to 'add-to-store'.
2017-11-21 23:09:16 +01:00
Ludovic Courtès
b1488c7653
git: Check whether 'clone-init-options' is defined.
...
This is a followup to 195f0d05c3
.
* guix/git.scm (clone*): Check whether 'clone-init-options' is defined
before using it.
2017-11-11 20:09:25 +01:00
Ludovic Courtès
195f0d05c3
git: Work around wrong default argument of 'clone'.
...
Fixes <https://bugs.gnu.org/29238 >.
Reported by Benjamin Andresen <benny@in-ulm.de>.
* guix/git.scm (clone*): Pass second argument to 'clone'.
2017-11-10 13:07:54 +01:00
Ludovic Courtès
0ad5f80982
Fix ambiguous imports.
...
* gnu/packages/ocaml.scm: Hide 'zip' from (srfi srfi-1).
* guix/git.scm: Select 'mkdir-p' from (guix build utils).
2017-11-07 00:12:10 +01:00
Mathieu Othacehe
b02469d298
guix: git: Stop using libgit2-shutdown.
...
* guix/git.scm (with-libgit2): Stop calling (libgit2-shutdown) to prevent
segfaults when pointer finalizers are run.
2017-07-01 16:32:42 +02:00
Mathieu Othacehe
6b7b3ca981
guix: git: Add new module.
...
* guix/git.scm: New file.
* configure.ac: Check for (guile git).
* Makefile.am: Build guix/git.scm if (guile git) is available.
2017-06-09 09:48:26 +02:00
Leo Famulari
40d728a87d
Revert "guix: git: Add new module."
...
This reverts commit a70b784708
.
Commit a70b784708
caused `guix pull` to fail:
ERROR: In procedure scm-error:
ERROR: no code for module (git)
2017-05-05 20:12:57 -04:00
Mathieu Othacehe
a70b784708
guix: git: Add new module.
...
* guix/git.scm: New file.
* configure.ac: Check for (guile git).
* Makefile.am: Build guix/git.scm if (guile git) is available.
2017-05-05 19:52:38 +02:00