diff options
author | Nikolay Amiantov <ab@fmap.me> | 2015-08-27 04:02:09 +0300 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2015-09-20 18:24:34 +0200 |
commit | f5deff5137f8807cd9a0364bf3580c2853951126 (patch) | |
tree | 97dd667d6bbd7256fb53d2f7ae347a165b9a1c28 /pkgs/build-support/fetchgit/nix-prefetch-git | |
parent | 3ce3539cdca76084a4ec74b79f51b270492f9155 (diff) | |
download | nixlib-f5deff5137f8807cd9a0364bf3580c2853951126.tar nixlib-f5deff5137f8807cd9a0364bf3580c2853951126.tar.gz nixlib-f5deff5137f8807cd9a0364bf3580c2853951126.tar.bz2 nixlib-f5deff5137f8807cd9a0364bf3580c2853951126.tar.lz nixlib-f5deff5137f8807cd9a0364bf3580c2853951126.tar.xz nixlib-f5deff5137f8807cd9a0364bf3580c2853951126.tar.zst nixlib-f5deff5137f8807cd9a0364bf3580c2853951126.zip |
nix-prefetch-git: pull all tags from remote when checkouting by revision
Close #9790. This fixes checkouting for a nasty combination: 1. To be checkouted is a revision which corresponds to tag in a form "<tag>^{}". 2. This revision is not fetched by default.
Diffstat (limited to 'pkgs/build-support/fetchgit/nix-prefetch-git')
-rwxr-xr-x | pkgs/build-support/fetchgit/nix-prefetch-git | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git index ceedf313f28e..22d46257075e 100755 --- a/pkgs/build-support/fetchgit/nix-prefetch-git +++ b/pkgs/build-support/fetchgit/nix-prefetch-git @@ -109,7 +109,7 @@ checkout_hash(){ hash=$(hash_from_ref $ref) fi - git fetch ${builder:+--progress} origin || return 1 + git fetch -t ${builder:+--progress} origin || return 1 git checkout -b $branchName $hash || return 1 } |