1
0

Simplify pushToGitea logic by removing dirty worktree check

This commit is contained in:
2026-07-16 16:01:08 +02:00
parent 56397d11e2
commit 22ea72bccc
3 changed files with 2 additions and 18 deletions

View File

@@ -122,16 +122,8 @@ window.addEventListener('DOMContentLoaded', async () => {
pushBtn.textContent = 'Pushing…';
try {
const hasUncommittedFiles = await window.electronAPI.hasDiffs(selected);
if (hasUncommittedFiles) {
const confirmed = confirm(
'This repository contains uncommitted or untracked files.\n\n' +
'Only committed files will be pushed. Continue anyway?'
);
if (!confirmed) return;
}
// send the folderpath to main via a new IPC channel 'push-to-gitea'
const result = await window.electronAPI.pushToGitea(selected.path, hasUncommittedFiles);
const result = await window.electronAPI.pushToGitea(selected.path);
if (result.success) {
alert('✔ Pushed successfully to Gitea: ' + result.repoUrl);
} else {