From 2bd1537e9ce41b8bf2fa9c01163616520441bfc0 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 10 Mar 2026 17:18:21 -0600 Subject: [PATCH] feat: add .git asset for source-only GitHub releases Source-only releases (no uploaded assets) now also emit a .git asset with the GitHub clone URL, matching how gittag-sourced packages like vim-commentary and vim-zig work. This allows install via git clone --branch as an alternative to downloading the tarball. --- cmd/webicached/main.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cmd/webicached/main.go b/cmd/webicached/main.go index 86ea09e..aabc415 100644 --- a/cmd/webicached/main.go +++ b/cmd/webicached/main.go @@ -620,6 +620,16 @@ func classifyGitHub(pkg string, conf *installerconf.Conf, d *rawcache.Dir) ([]st Date: date, }) } + // Git clone asset — same as gittag source. + gitURL := fmt.Sprintf("https://github.com/%s/%s.git", owner, repo) + assets = append(assets, storage.Asset{ + Filename: tag, + Version: version, + Channel: channel, + Format: ".git", + Download: gitURL, + Date: date, + }) } } return assets, nil