diff options
author | OPNA2608 <opna2608@protonmail.com> | 2024-03-03 18:40:47 +0100 |
---|---|---|
committer | OPNA2608 <opna2608@protonmail.com> | 2024-03-03 18:58:58 +0100 |
commit | ce3a2f648e52001596548585ee779e3efc1c863f (patch) | |
tree | 05ab9ae4f68bdc054e1bb19a3ff8b87ccbe2efbe /pkgs/common-updater | |
parent | ce91e3572b588ae41296140e63c6f062ddce86f0 (diff) |
unstableGitUpdater: Drop --bare cloning
It messes with tags
Diffstat (limited to 'pkgs/common-updater')
-rw-r--r-- | pkgs/common-updater/unstable-updater.nix | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pkgs/common-updater/unstable-updater.nix b/pkgs/common-updater/unstable-updater.nix index 5dd4b56090233..1a417ebad3f57 100644 --- a/pkgs/common-updater/unstable-updater.nix +++ b/pkgs/common-updater/unstable-updater.nix @@ -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" |