Update from Git Manager GUI

This commit is contained in:
2026-03-24 22:02:56 +01:00
parent a6585a856b
commit 1195dd4c0e

View File

@@ -2606,6 +2606,7 @@ async function loadGiteaRepos() {
}
const paths = Array.from(files).map(f => f.path);
const uploadSessionId = `drop-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
setStatus(`Starte Upload von ${paths.length} Elementen...`);
for (let i = 0; i < paths.length; i++) {
@@ -2621,7 +2622,8 @@ async function loadGiteaRepos() {
destPath: '',
cloneUrl,
branch: getDefaultBranch(owner, repoName),
skipBackup: i > 0 // Backup nur beim ersten Element
skipBackup: i > 0, // Backup nur beim ersten Element
uploadSessionId
});
if (!res.ok) {
@@ -2776,6 +2778,7 @@ async function loadRepoContents(owner, repo, path) {
const paths = Array.from(files).map(f => f.path);
const targetPath = item.path;
const uploadSessionId = `drop-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
for (let i = 0; i < paths.length; i++) {
const p = paths[i];
@@ -2789,7 +2792,8 @@ async function loadRepoContents(owner, repo, path) {
repo,
destPath: targetPath,
branch: getDefaultBranch(owner, repo),
skipBackup: i > 0 // Backup nur beim ersten Element
skipBackup: i > 0, // Backup nur beim ersten Element
uploadSessionId
});
} catch (error) {
console.error('Upload error:', error);
@@ -3945,9 +3949,11 @@ function setupGlobalDropZone() {
const targetPath = currentState.path || '';
const paths = Array.from(files).map(f => f.path);
const uploadSessionId = `drop-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
setStatus(`Uploading ${paths.length} items to /${targetPath || 'root'}...`);
for (const p of paths) {
for (let i = 0; i < paths.length; i++) {
const p = paths[i];
const baseName = p.split(/[\\/]/).pop();
showProgress(0, `Uploading: ${baseName}`);
@@ -3957,7 +3963,9 @@ function setupGlobalDropZone() {
owner,
repo,
destPath: targetPath,
branch: getDefaultBranch(owner, repo)
branch: getDefaultBranch(owner, repo),
skipBackup: i > 0,
uploadSessionId
});
if (!res.ok) {