Skip to content

Commit 7079cde

Browse files
authored
Retrieve 100 tags instead of default (30) (#51)
* Retrieve 100 tags instead of default (30) * Bump version for release
1 parent 74998f9 commit 7079cde

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/microsoft-git/devcontainer-feature.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
{
22
"name": "Microsoft Git for monorepo with GVFS support",
33
"id": "microsoft-git",
4-
"version": "1.0.5",
4+
"version": "1.0.6",
55
"description": "A fork of Git containing Microsoft-specific patches",
66
"options": {
77
"version": {
88
"type": "string",
99
"proposals": [
1010
"latest",
11+
"2.43.0.vfs.0.0",
12+
"2.42.0.vfs.0.3",
13+
"2.40.1.vfs.0.2",
1114
"2.39.2.vfs.0.0",
12-
"2.39.1.vfs.0.0",
13-
"2.39.0.vfs.0.0",
14-
"2.38.1.vfs.0.1",
15-
"2.38.1.vfs.0.0",
16-
"2.38.0.vfs.0.0"
15+
"2.38.1.vfs.0.1"
1716
],
1817
"default": "latest",
1918
"description": "Select version of Microsoft Git, if not latest."

src/microsoft-git/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fi
4444
# Partial version matching
4545
if [ "$(echo "${GIT_VERSION}" | grep -o '\.' | wc -l)" != "2" ]; then
4646
requested_version="${GIT_VERSION}"
47-
version_list="$(curl -sSL -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/microsoft/git/tags" | grep -oP '"name":\s*"v\K[0-9]+\.[0-9]+\.[0-9]+\.vfs\.[0-9]+\.[0-9]+"' | tr -d '"' | sort -rV)"
47+
version_list="$(curl -sSL -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/microsoft/git/tags?per_page=100" | grep -oP '"name":\s*"v\K[0-9]+\.[0-9]+\.[0-9]+\.vfs\.[0-9]+\.[0-9]+"' | tr -d '"' | sort -rV)"
4848
if [ "${requested_version}" = "latest" ] || [ "${requested_version}" = "lts" ] || [ "${requested_version}" = "current" ]; then
4949
GIT_VERSION="$(echo "${version_list}" | head -n 1)"
5050
else

0 commit comments

Comments
 (0)