diff options
author | Volth <volth@webmaster.ms> | 2017-06-26 12:56:00 +0000 |
---|---|---|
committer | Volth <volth@webmaster.ms> | 2017-07-04 20:22:13 +0000 |
commit | 535a6c3520c3e34c5d74008764d12165650ec4d4 (patch) | |
tree | b8fe96e8f88537a7ea3d789e109bddb5b7ca5ce7 /pkgs/build-support/fetchgit/nix-prefetch-git | |
parent | c73f0caea5f0822ea044b4f90de4b64706d91362 (diff) | |
download | nixlib-535a6c3520c3e34c5d74008764d12165650ec4d4.tar nixlib-535a6c3520c3e34c5d74008764d12165650ec4d4.tar.gz nixlib-535a6c3520c3e34c5d74008764d12165650ec4d4.tar.bz2 nixlib-535a6c3520c3e34c5d74008764d12165650ec4d4.tar.lz nixlib-535a6c3520c3e34c5d74008764d12165650ec4d4.tar.xz nixlib-535a6c3520c3e34c5d74008764d12165650ec4d4.tar.zst nixlib-535a6c3520c3e34c5d74008764d12165650ec4d4.zip |
fetchFromGitHub: fix fetchSubmodules=true when revision is not hexadecimal
Diffstat (limited to 'pkgs/build-support/fetchgit/nix-prefetch-git')
-rwxr-xr-x | pkgs/build-support/fetchgit/nix-prefetch-git | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git index 9e4f346f7a52..c3ba15d59023 100755 --- a/pkgs/build-support/fetchgit/nix-prefetch-git +++ b/pkgs/build-support/fetchgit/nix-prefetch-git @@ -282,8 +282,8 @@ _clone_user_rev() { if test -z "$(echo "$rev" | tr -d 0123456789abcdef)"; then clone "$dir" "$url" "$rev" "" 1>&2 else - echo 1>&2 "Bad commit hash or bad reference." - exit 1 + # if revision is not hexadecimal it might be a tag + clone "$dir" "$url" "" "refs/tags/$rev" 1>&2 fi;; esac |