Skip to content

"Delete local" button doesn't work #8379

Closed
@JoyHak

Description

@JoyHak

Version

0.14.19

Operating System

Windows

Distribution Method

msi (Windows)

Describe the issue

I can't delete local branch without seeing some errors

Image

Sometimes I can delete any branch and sometimes I can't (nothing happens)

How to reproduce (Optional)

  1. Open "Branches"
  2. Select any branch
  3. Tap "Delete local"
  4. See nothing

Expected behavior (Optional)

No response

Relevant log output (Optional)

Error before deleting branch:

2025-05-03T06:37:18.981695Z  INFO get_branch_listing_details: crates\gitbutler-tauri\src\virtual_branches.rs:491: new project_id=414c02e1-fbdc-4021-b686-35b93458c777 branch_names=["fix-dialogs"]
2025-05-03T06:37:19.045720Z  INFO get_branch_listing_details: crates\gitbutler-tauri\src\virtual_branches.rs:491: close time.busy=64.0ms time.idle=29.7µs project_id=414c02e1-fbdc-4021-b686-35b93458c777 branch_names=["fix-dialogs"]
2025-05-03T06:37:19.094360Z  INFO get_branch_listing_details: crates\gitbutler-tauri\src\virtual_branches.rs:491: new project_id=414c02e1-fbdc-4021-b686-35b93458c777 branch_names=["refactor-indentation"]
2025-05-03T06:37:19.154994Z  INFO get_branch_listing_details: crates\gitbutler-tauri\src\virtual_branches.rs:491: close time.busy=60.6ms time.idle=34.4µs project_id=414c02e1-fbdc-4021-b686-35b93458c777 branch_names=["refactor-indentation"]
2025-05-03T06:38:37.210096Z  INFO delete_local_branch: crates\gitbutler-tauri\src\virtual_branches.rs:94: new project_id=414c02e1-fbdc-4021-b686-35b93458c777 refname=Local(Refname { branch: "fix-colors", remote: None }) given_name="fix-colors"
2025-05-03T06:38:37.273881Z  INFO delete_local_branch: crates\gitbutler-tauri\src\virtual_branches.rs:94: close time.busy=63.8ms time.idle=36.4µs project_id=414c02e1-fbdc-4021-b686-35b93458c777 refname=Local(Refname { branch: "fix-colors", remote: None }) given_name="fix-colors"
2025-05-03T06:38:37.291721Z  INFO branch_details: crates\gitbutler-tauri\src\workspace.rs:49: new project_id=414c02e1-fbdc-4021-b686-35b93458c777 branch_name="fix-colors" remote=None
2025-05-03T06:38:37.291746Z  INFO get_base_branch_data: crates\gitbutler-tauri\src\virtual_branches.rs:154: new project_id=414c02e1-fbdc-4021-b686-35b93458c777
2025-05-03T06:38:37.297277Z  INFO secret_get_global: crates\gitbutler-tauri\src\secret.rs:9: new handle="git-lab-token:414c02e1-fbdc-4021-b686-35b93458c777"
2025-05-03T06:38:37.298133Z  INFO secret_get_global: crates\gitbutler-tauri\src\secret.rs:9: close time.busy=832µs time.idle=23.9µs handle="git-lab-token:414c02e1-fbdc-4021-b686-35b93458c777"
2025-05-03T06:38:37.304159Z  INFO get_base_branch_data:get_base_branch_data: crates\gitbutler-branch-actions\src\base.rs:49: new project_id=414c02e1-fbdc-4021-b686-35b93458c777

2025-05-03T06:38:37.305636Z ERROR branch_details: crates\gitbutler-tauri\src\workspace.rs:49: error=Error(cannot locate local branch 'fix-colors'; class=Reference (4); code=NotFound (-3)) project_id=414c02e1-fbdc-4021-b686-35b93458c777 branch_name="fix-colors" remote=None

2025-05-03T06:38:37.305706Z  INFO branch_details: crates\gitbutler-tauri\src\workspace.rs:49: close time.busy=14.0ms time.idle=37.5µs project_id=414c02e1-fbdc-4021-b686-35b93458c777 branch_name="fix-colors" remote=None
2025-05-03T06:38:37.325555Z  INFO get_base_branch_data:get_base_branch_data: crates\gitbutler-branch-actions\src\base.rs:49: close time.busy=21.3ms time.idle=49.8µs project_id=414c02e1-fbdc-4021-b686-35b93458c777
2025-05-03T06:38:37.326099Z  INFO get_base_branch_data: crates\gitbutler-tauri\src\virtual_branches.rs:154: close time.busy=34.3ms time.idle=28.4µs project_id=414c02e1-fbdc-4021-b686-35b93458c777

Nothing happens sometimes:

2025-05-03T06:51:45.880908Z  INFO delete_local_branch: crates\gitbutler-tauri\src\virtual_branches.rs:94: new project_id=414c02e1-fbdc-4021-b686-35b93458c777 refname=Local(Refname { branch: "ini-read-write", remote: None }) given_name="ini-read-write"
2025-05-03T06:51:45.978785Z  INFO delete_local_branch: crates\gitbutler-tauri\src\virtual_branches.rs:94: close time.busy=97.8ms time.idle=28.0µs project_id=414c02e1-fbdc-4021-b686-35b93458c777 refname=Local(Refname { branch: "ini-read-write", remote: None }) given_name="ini-read-write"
2025-05-03T06:51:46.004479Z  INFO get_base_branch_data: crates\gitbutler-tauri\src\virtual_branches.rs:154: new project_id=414c02e1-fbdc-4021-b686-35b93458c777
2025-05-03T06:51:46.014013Z  INFO get_base_branch_data:get_base_branch_data: crates\gitbutler-branch-actions\src\base.rs:49: new project_id=414c02e1-fbdc-4021-b686-35b93458c777
2025-05-03T06:51:46.025888Z  INFO secret_get_global: crates\gitbutler-tauri\src\secret.rs:9: new handle="git-lab-token:414c02e1-fbdc-4021-b686-35b93458c777"
2025-05-03T06:51:46.030422Z  INFO secret_get_global: crates\gitbutler-tauri\src\secret.rs:9: close time.busy=4.51ms time.idle=23.9µs handle="git-lab-token:414c02e1-fbdc-4021-b686-35b93458c777"
2025-05-03T06:51:46.040278Z  INFO get_base_branch_data:get_base_branch_data: crates\gitbutler-branch-actions\src\base.rs:49: close time.busy=26.2ms time.idle=33.4µs project_id=414c02e1-fbdc-4021-b686-35b93458c777
2025-05-03T06:51:46.040711Z  INFO get_base_branch_data: crates\gitbutler-tauri\src\virtual_branches.rs:154: close time.busy=36.2ms time.idle=39.3µs project_id=414c02e1-fbdc-4021-b686-35b93458c777
2025-05-03T06:51:46.095473Z  INFO secret_get_global: crates\gitbutler-tauri\src\secret.rs:9: new handle="git-lab-token:414c02e1-fbdc-4021-b686-35b93458c777"
2025-05-03T06:51:46.096048Z  INFO secret_get_global: crates\gitbutler-tauri\src\secret.rs:9: close time.busy=543µs time.idle=32.8µs handle="git-lab-token:414c02e1-fbdc-4021-b686-35b93458c777"
2025-05-03T06:51:46.343113Z  INFO set_project_active:set_project_to_window:file monitor:handle debounced events: crates\gitbutler-watcher\src\file_monitor.rs:119: new id=414c02e1-fbdc-4021-b686-35b93458c777 window="main" project_id=414c02e1-fbdc-4021-b686-35b93458c777
2025-05-03T06:51:46.343222Z  INFO set_project_active:set_project_to_window:file monitor:handle debounced events: crates\gitbutler-watcher\src\file_monitor.rs:119: close time.busy=68.2µs time.idle=44.7µs id=414c02e1-fbdc-4021-b686-35b93458c777 window="main" project_id=414c02e1-fbdc-4021-b686-35b93458c777 fs_events=5 fs_events=5 ignored=0 ignored=0 git_noop=5 git_noop=5 git=0 git=0 project=0 project=0
2025-05-03T06:51:46.627805Z  INFO list_branches: crates\gitbutler-tauri\src\virtual_branches.rs:477: new project_id=414c02e1-fbdc-4021-b686-35b93458c777 filter=None
2025-05-03T06:51:46.670875Z  INFO list_branches: crates\gitbutler-tauri\src\virtual_branches.rs:477: close time.busy=43.0ms time.idle=28.7µs project_id=414c02e1-fbdc-4021-b686-35b93458c777 filter=None
2025-05-03T06:51:47.421021Z  INFO set_project_active:set_project_to_window:file monitor:handle debounced events: crates\gitbutler-watcher\src\file_monitor.rs:119: new id=414c02e1-fbdc-4021-b686-35b93458c777 window="main" project_id=414c02e1-fbdc-4021-b686-35b93458c777
2025-05-03T06:51:47.421151Z  INFO set_project_active:set_project_to_window:file monitor:handle debounced events: crates\gitbutler-watcher\src\file_monitor.rs:119: close time.busy=90.0µs time.idle=42.7µs id=414c02e1-fbdc-4021-b686-35b93458c777 window="main" project_id=414c02e1-fbdc-4021-b686-35b93458c777 fs_events=10 fs_events=10 ignored=0 ignored=0 git_noop=10 git_noop=10 git=0 git=0 project=0 project=0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfeedback requestedFeedback was requested to help resolve the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions