Skip to content

Commit

Permalink
branch name error hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Lukasczyk committed Sep 25, 2024
1 parent 94338b0 commit 453cda3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/renderer/src/views/GitSyncView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const push = async()=>{
// get current branch
const branches = await getBranches();
if(!branches.current) return dialogProps.state=2;
if(branches.startsWith('(HEAD detached at ')){
if(branches.current.startsWith('(HEAD detached at ')){
dialogProps.state=2;
return showError('No Branch Selected (Detached HEAD). Fix in Commit View.');
}
Expand Down

0 comments on commit 453cda3

Please sign in to comment.