mirror of
https://github.com/Dasemu/Grove.git
synced 2026-11-26 23:36:11 +00:00
fix: import/bootstrap hardening, canonical registry URLs, GUI canonical add path
- plain clones count as present; import refuses non-empty targets - registry stores canonical https URLs; bootstrap matches provider by host - clone URLs and repo names validated; GitHub link-style pagination - bridge passes the canonical path to grove add; fix flaky instance test Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fdc5a8f5a6
commit
3cba9784a3
8 files changed
+273
-59
No files matched your search
@@ -70,7 +70,7 @@ impl Provider for Gitea {
|
||||
fn list_repos(&self) -> Result<Vec<RemoteRepo>> {
|
||||
Ok(self
|
||||
.http
|
||||
.pages("/user/repos", 50, "limit")?
|
||||
.pages("/user/repos", 50, "limit", false)?
|
||||
.iter()
|
||||
.map(repo)
|
||||
.collect())
|
||||
@@ -82,7 +82,7 @@ impl Provider for Gitea {
|
||||
} else {
|
||||
format!("/orgs/{owner}/repos")
|
||||
};
|
||||
let items = match self.http.pages(&path, 50, "limit") {
|
||||
let items = match self.http.pages(&path, 50, "limit", false) {
|
||||
Ok(v) => v,
|
||||
// Not an organisation (a user, or an org the token cannot see): say so, and take
|
||||
// what the token can see under that name, private repos it collaborates on included.
|
||||
@@ -90,7 +90,7 @@ impl Provider for Gitea {
|
||||
eprintln!(
|
||||
"grove: /orgs/{owner} not found; listing the repositories you can see owned by {owner}"
|
||||
);
|
||||
self.http.pages("/user/repos", 50, "limit")?
|
||||
self.http.pages("/user/repos", 50, "limit", false)?
|
||||
}
|
||||
Err(e) => return Err(e),
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user