aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-09-11 16:01:09 +0200
committerGitHub <noreply@github.com>2019-09-11 16:01:09 +0200
commitcf4c31c872ac7fbf9c926a49303c5b8b5ffd02c8 (patch)
tree818b69401bf04a84560c58f25c0e7d37276113ad
parenta56b51a0ba7b0d6fdff7fd0127a118185b146f4f (diff)
parentae244af242ca3621e5a3b9196f27d9fcbf297266 (diff)
Merge pull request #3089 from jtanguy/docs-fetchgit
Improve the fetchGit documentation examples
-rw-r--r--doc/manual/expressions/builtins.xml7
1 files changed, 2 insertions, 5 deletions
diff --git a/doc/manual/expressions/builtins.xml b/doc/manual/expressions/builtins.xml
index 4c1d618e9..191fa7810 100644
--- a/doc/manual/expressions/builtins.xml
+++ b/doc/manual/expressions/builtins.xml
@@ -448,7 +448,7 @@ stdenv.mkDerivation { … }
<example>
<title>Fetching an arbitrary ref</title>
<programlisting>builtins.fetchGit {
- url = "https://gitub.com/NixOS/nix.git";
+ url = "https://github.com/NixOS/nix.git";
ref = "refs/heads/0.5-release";
}</programlisting>
</example>
@@ -499,11 +499,8 @@ stdenv.mkDerivation { … }
<title>Fetching a tag</title>
<programlisting>builtins.fetchGit {
url = "https://github.com/nixos/nix.git";
- ref = "tags/1.9";
+ ref = "refs/tags/1.9";
}</programlisting>
- <note><para>Due to a bug (<link
- xlink:href="https://github.com/NixOS/nix/issues/2385">#2385</link>),
- only non-annotated tags can be fetched.</para></note>
</example>
<example>