[03:00:02] :lgtm: [06:06:20] [lgtm](https://cdn.discordapp.com/emojis/1232473339184807956.webp?size=48&name=lgtm) [11:25:33] [1/9] Am I missing something obvious, or why can't I check out remote branches in staging? I've tried like 20 variations of git fetch and git checkout but it won't recognize the branches [11:25:33] [2/9] ``` [11:25:34] [3/9] [somerandomdeveloper@test151:/srv/mediawiki-staging/1.45/extensions/CreateWiki]$ sugit fetch origin [11:25:34] [4/9] [somerandomdeveloper@test151:/srv/mediawiki-staging/1.45/extensions/CreateWiki]$ sugit checkout debug-logging [11:25:34] [5/9] error: pathspec 'debug-logging' did not match any file(s) known to git [11:25:34] [6/9] [somerandomdeveloper@test151:/srv/mediawiki-staging/1.45/extensions/CreateWiki]$ sugit branch -r [11:25:35] [7/9] origin/HEAD -> origin/main [11:25:35] [8/9] origin/main [11:25:35] [9/9] ``` [11:26:30] [1/19] The only way I'm able to deploy a commit on a branch is by using [11:26:30] [2/19] ``` [11:26:30] [3/19] [somerandomdeveloper@test151:/srv/mediawiki-staging/1.45/extensions/CreateWiki]$ sugit fetch origin debug-logging [11:26:31] [4/19] From https://github.com/miraheze/CreateWiki [11:26:31] [5/19] * branch debug-logging -> FETCH_HEAD [11:26:31] [6/19] [somerandomdeveloper@test151:/srv/mediawiki-staging/1.45/extensions/CreateWiki]$ sugit checkout 9422417d6d5f10c57c0ff2431a58491b2c614c8d [11:26:32] [7/19] Note: switching to '9422417d6d5f10c57c0ff2431a58491b2c614c8d'. [11:26:32] [8/19] You are in 'detached HEAD' state. You can look around, make experimental [11:26:32] [9/19] changes and commit them, and you can discard any commits you make in this [11:26:33] [10/19] state without impacting any branches by switching back to a branch. [11:26:33] [11/19] If you want to create a new branch to retain commits you create, you may [11:26:34] [12/19] do so (now or later) by using -c with the switch command. Example: [11:26:34] [13/19] git switch -c [11:26:35] [14/19] Or undo this operation with: [11:26:35] [15/19] git switch - [11:26:36] [16/19] Turn off this advice by setting config variable advice.detachedHead to false [11:26:36] [17/19] HEAD is now at 9422417 CreateWikiDataStore: Log if mtime is invalid [11:26:37] [18/19] ``` [11:26:37] [19/19] But that's annoying to work with [11:28:51] [1/19] nvm fixed it using [11:28:51] [2/19] ``` [11:28:52] [3/19] [somerandomdeveloper@test151:/srv/mediawiki-staging/1.45/extensions/CreateWiki]$ sugit config --get remote.origin.fetch [11:28:52] [4/19] +refs/heads/main:refs/remotes/origin/main [11:28:52] [5/19] [somerandomdeveloper@test151:/srv/mediawiki-staging/1.45/extensions/CreateWiki]$ sugit config remote.origin.fetch "+refs/heads/:refs/remotes/origin/" [11:28:53] [6/19] [somerandomdeveloper@test151:/srv/mediawiki-staging/1.45/extensions/CreateWiki]$ sugit fetch origin [11:28:53] [7/19] From https://github.com/miraheze/CreateWiki [11:28:53] [8/19] * [new branch] T13396 -> origin/T13396 [11:28:54] [9/19] * [new branch] add-hook -> origin/add-hook [11:28:54] [10/19] * [new branch] debug-logging -> origin/debug-logging [11:28:54] [11/19] * [new branch] deletewikis-rewrite -> origin/deletewikis-rewrite [11:28:55] [12/19] * [new branch] handleai -> origin/handleai [11:28:55] [13/19] * [new branch] logging-adjust -> origin/logging-adjust [11:28:56] [14/19] * [new branch] rmprivate -> origin/rmprivate [11:28:56] [15/19] * [new branch] server -> origin/server [11:28:57] [16/19] * [new branch] sortfunction -> origin/sortfunction [11:28:57] [17/19] * [new branch] statuspane -> origin/statuspane [11:28:58] [18/19] ``` [11:28:58] [19/19] but that's still suboptimal because iirc it doesn't set this option for any other repos on gh/gerrit [12:10:00] wtf that's annoying [12:10:40] i like that you kept my alias name :3 [12:13:14] lol [12:13:16] it's quite convenient [12:19:00] pull...? [12:21:47] I've always used pull instead of fetch when I need to summon a newly made branch in mw-config [12:24:34] pull didn't work either [12:24:38] the config was the issue [12:26:09] huh [12:26:48] i blame puppet magic [15:00:19] [1/3] i'm building a discord bot for a wiki on miraheze and found out that i can anonymously use `Special:CargoExport` instead of `api.php?action=cargoquery`, (the latter requiring auth). [15:00:19] [2/3] `Special:CargoExport` with `format=json` doesn't wrap rows in a `{ "title": ... }` JSON object and also doesn't cast numbers to strings. [15:00:19] [3/3] is there any reason i shouldn't use `Special:CargoExport` to fetch data from? [15:17:27] Why would you want to cast a number to a string? [15:35:31] exactly, but that's what `api.php?action=cargoquery` does. [15:35:41] `Special:CargoExport` doesn't do that. [18:04:03] can someone help me with my RC requests for `snxyzmetawiki`? the backlog isn't that long for me i believe [21:49:55] [1/2] how do i use API:Search to search for pages that are in at least one category of a specified list of categories? (in addition to `srsearch` for title search) [21:49:56] [2/2] or alternatively how can i use `srsearch` and get the categories for each page in the result so i can filter by the category in my client code?