mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 15:26:17 +02:00
Merge pull request #3089 from jtanguy/docs-fetchgit
Improve the fetchGit documentation examples
This commit is contained in:
commit
cf4c31c872
1 changed files with 2 additions and 5 deletions
|
@ -448,7 +448,7 @@ stdenv.mkDerivation { … }
|
||||||
<example>
|
<example>
|
||||||
<title>Fetching an arbitrary ref</title>
|
<title>Fetching an arbitrary ref</title>
|
||||||
<programlisting>builtins.fetchGit {
|
<programlisting>builtins.fetchGit {
|
||||||
url = "https://gitub.com/NixOS/nix.git";
|
url = "https://github.com/NixOS/nix.git";
|
||||||
ref = "refs/heads/0.5-release";
|
ref = "refs/heads/0.5-release";
|
||||||
}</programlisting>
|
}</programlisting>
|
||||||
</example>
|
</example>
|
||||||
|
@ -499,11 +499,8 @@ stdenv.mkDerivation { … }
|
||||||
<title>Fetching a tag</title>
|
<title>Fetching a tag</title>
|
||||||
<programlisting>builtins.fetchGit {
|
<programlisting>builtins.fetchGit {
|
||||||
url = "https://github.com/nixos/nix.git";
|
url = "https://github.com/nixos/nix.git";
|
||||||
ref = "tags/1.9";
|
ref = "refs/tags/1.9";
|
||||||
}</programlisting>
|
}</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>
|
||||||
|
|
||||||
<example>
|
<example>
|
||||||
|
|
Loading…
Reference in a new issue