tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
git: update.sh fix grep warning
John Garcia
2 years ago
21db1640
bbf2d405
+1
-1
1 changed file
expand all
collapse all
unified
split
pkgs
applications
version-management
git
update.sh
+1
-1
pkgs/applications/version-management/git/update.sh
···
4
4
set -eu -o pipefail
5
5
6
6
oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion git" | tr -d '"')"
7
7
-
latestTag="$(git ls-remote --tags --sort="v:refname" https://github.com/git/git.git | grep -v '\{\}' | grep -v '\-rc' | tail -1 | sed 's|^.*/v\(.*\)|\1|')"
7
7
+
latestTag="$(git ls-remote --tags --sort="v:refname" https://github.com/git/git.git | grep -v '{}' | grep -v '\-rc' | tail -1 | sed 's|^.*/v\(.*\)|\1|')"
8
8
targetVersion="${1:-$latestTag}"
9
9
10
10
if [ ! "${oldVersion}" = "${targetVersion}" ]; then