Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion apache-reference.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,25 @@ tasks.register('checkModules') {

def versions = binDir.listFiles()
?.findAll { it.isDirectory() && it.name.startsWith(bundleName) }
?.sort { it.name } ?: []
?: []

// Semantic sort by the version suffix (the part after the bundle name)
versions = versions.sort { a, b ->
def aVer = a.name.replace(bundleName, '')
def bVer = b.name.replace(bundleName, '')
def aParts = aVer.tokenize('.').collect { it.isInteger() ? it.toInteger() : it }
def bParts = bVer.tokenize('.').collect { it.isInteger() ? it.toInteger() : it }
for (int i = 0; i < Math.max(aParts.size(), bParts.size()); i++) {
def aVal = i < aParts.size() ? aParts[i] : 0
def bVal = i < bParts.size() ? bParts[i] : 0
if (aVal.getClass() != bVal.getClass()) {
aVal = aVal.toString()
bVal = bVal.toString()
}
if (aVal != bVal) return aVal <=> bVal
}
return 0
}

versions.each { versionDir ->
def modulesFile = new File(versionDir, 'modules.properties')
Expand Down
6 changes: 6 additions & 0 deletions bin/git2.54.0/bearsampp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
gitVersion = "2.54.0"
gitExe = "bin/git.exe"
gitBash = "bin/sh.exe"
gitScanStartup = "0"

bundleRelease = "@RELEASE_VERSION@"
1 change: 1 addition & 0 deletions bin/git2.54.0/repos.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

17 changes: 15 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,21 @@ def getAvailableVersions() {
versions.addAll(archivedVersions)
}

// Remove duplicates and sort
return versions.unique().sort()
// Remove duplicates and sort semantically
return versions.unique().sort { a, b ->
def aParts = a.tokenize('.').collect { it.isInteger() ? it.toInteger() : it }
def bParts = b.tokenize('.').collect { it.isInteger() ? it.toInteger() : it }
for (int i = 0; i < Math.max(aParts.size(), bParts.size()); i++) {
def aVal = i < aParts.size() ? aParts[i] : 0
def bVal = i < bParts.size() ? bParts[i] : 0
if (aVal.getClass() != bVal.getClass()) {
aVal = aVal.toString()
bVal = bVal.toString()
}
if (aVal != bVal) return aVal <=> bVal
}
return 0
}
}

// Function to download and extract Git binaries (remote-first like Bruno)
Expand Down
2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
bundle.name = git
bundle.release = 2026.4.12
bundle.release = 2026.5.31
bundle.type = tools
bundle.format = 7z
Loading