mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
unstableGitUpdater: Drop --bare cloning
It messes with tags
This commit is contained in:
parent
ce91e3572b
commit
ce3a2f648e
1 changed files with 2 additions and 4 deletions
|
@ -84,9 +84,7 @@ let
|
|||
# Get info about HEAD from a shallow git clone
|
||||
tmpdir="$(mktemp -d)"
|
||||
|
||||
cloneArgs=(
|
||||
--bare
|
||||
)
|
||||
cloneArgs=()
|
||||
|
||||
if [[ "$shallow_clone" == "1" ]]; then
|
||||
cloneArgs+=(--depth=1)
|
||||
|
@ -120,7 +118,7 @@ let
|
|||
last_tag="$(git describe --tags --abbrev=0 --match "''${tag_format}" 2> /dev/null || true)"
|
||||
fi
|
||||
else
|
||||
last_tag="$(git describe --tags --abbrev=0 2> --match "''${tag_format}" /dev/null || true)"
|
||||
last_tag="$(git describe --tags --abbrev=0 --match "''${tag_format}" 2> /dev/null || true)"
|
||||
fi
|
||||
if [[ -z "$last_tag" ]]; then
|
||||
last_tag="0"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue