GNU bug report logs - #60494
Document git-checkout

Previous Next

Package: guix;

Reported by: mirai <mirai <at> makinata.eu>

Date: Mon, 2 Jan 2023 14:53:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: 60494 <at> debbugs.gnu.org, mirai <at> makinata.eu
Subject: bug#60494: git-reference does not support file:// uri scheme
Date: Mon, 02 Jan 2023 17:24:24 +0000
retitle 60494 Document git-checkout
thanks

Hi!

That itself is not a bug: git-fetch is the wrong tool for this job.  It should not have access to your files.

You can clone a local repository by directly calling git-checkout and passing it as the package source:

  (source
    (git-checkout (url "/home/mirai/foo")))

No need for a hash, either!  \o/





Kind regards,

T G-R

Sent on the go.  Excuse or enjoy my brevity.




This bug report was last modified 2 years and 165 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.