Upload folder via GUI - src

This commit is contained in:
Git Manager GUI
2026-05-24 22:33:18 +02:00
parent 309babf849
commit 5c792eb1a8

View File

@@ -26,7 +26,7 @@ function normalizeAndValidateBaseUrl(rawUrl) {
try { try {
parsed = new URL(value); parsed = new URL(value);
} catch (_) { } catch (_) {
throw new Error('Ungueltige Gitea URL. Beispiel fuer IPv6: http://[2001:db8::1]:3000'); throw new Error('Ungültige Gitea-URL. Beispiel für IPv6: http://[2001:db8::1]:3000');
} }
if (parsed.protocol !== 'http:' && parsed.protocol !== 'https:') { if (parsed.protocol !== 'http:' && parsed.protocol !== 'https:') {
@@ -1293,7 +1293,7 @@ async function updateGiteaRepoTopics({ token, url, owner, repo, topics }) {
); );
return res.data; return res.data;
} catch (err) { } catch (err) {
// Fallback fuer aeltere/abweichende Gitea-Versionen // Fallback für ältere/abweichende Gitea-Versionen
const res = await axiosInstance.patch( const res = await axiosInstance.patch(
`${base}/api/v1/repos/${repoPath}`, `${base}/api/v1/repos/${repoPath}`,
{ topics: safeTopics }, { topics: safeTopics },