Merge pull request #166841 from trofi/gitUpdater-url
gitUpdater: add explicit url parameter to specify a git tree for tags
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{ genericUpdater
|
||||
{ lib
|
||||
, genericUpdater
|
||||
, common-updater-scripts
|
||||
}:
|
||||
|
||||
@@ -9,9 +10,12 @@
|
||||
, rev-prefix ? ""
|
||||
, odd-unstable ? false
|
||||
, patchlevel-unstable ? false
|
||||
# explicit url is useful when git protocol is used only for tags listing
|
||||
# while actual release is referred by tarball
|
||||
, url ? null
|
||||
}:
|
||||
|
||||
genericUpdater {
|
||||
inherit pname version attrPath ignoredVersions rev-prefix odd-unstable patchlevel-unstable;
|
||||
versionLister = "${common-updater-scripts}/bin/list-git-tags";
|
||||
versionLister = "${common-updater-scripts}/bin/list-git-tags ${lib.optionalString (url != null) "--url=${url}"}";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user