Commit f5deff51 authored by Nikolay Amiantov's avatar Nikolay Amiantov Committed by Vladimír Čunát
Browse files

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.
parent 3ce3539c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
}