Loading pkgs/common-updater/unstable-updater.nix +9 −8 Original line number Diff line number Diff line Loading @@ -90,16 +90,17 @@ let ${git}/bin/git fetch --depth="$depth" --tags depth=$(( $depth * 2 )) done else if [[ -z "$last_tag" ]]; then # To be extra sure, check if full history helps with finding a tag git fetch --tags last_tag="$(${git}/bin/git describe --tags --abbrev=0 2> /dev/null || true)" fi if [[ -z "$last_tag" ]]; then if [[ "$shallow_clone" == "1" ]]; then echo "Cound not find a tag within last 10000 commits" > /dev/stderr else echo "Cound not find a tag" > /dev/stderr last_tag="$(${git}/bin/git describe --tags --abbrev=0 2> /dev/null || true)" fi exit 1 if [[ -z "$last_tag" ]]; then last_tag="0" fi if [[ -n "$tag_prefix" ]]; then last_tag="''${last_tag#$tag_prefix}" Loading Loading
pkgs/common-updater/unstable-updater.nix +9 −8 Original line number Diff line number Diff line Loading @@ -90,16 +90,17 @@ let ${git}/bin/git fetch --depth="$depth" --tags depth=$(( $depth * 2 )) done else if [[ -z "$last_tag" ]]; then # To be extra sure, check if full history helps with finding a tag git fetch --tags last_tag="$(${git}/bin/git describe --tags --abbrev=0 2> /dev/null || true)" fi if [[ -z "$last_tag" ]]; then if [[ "$shallow_clone" == "1" ]]; then echo "Cound not find a tag within last 10000 commits" > /dev/stderr else echo "Cound not find a tag" > /dev/stderr last_tag="$(${git}/bin/git describe --tags --abbrev=0 2> /dev/null || true)" fi exit 1 if [[ -z "$last_tag" ]]; then last_tag="0" fi if [[ -n "$tag_prefix" ]]; then last_tag="''${last_tag#$tag_prefix}" Loading