Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • TortoiseGit TortoiseGit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 364
    • Issues 364
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TortoiseGitTortoiseGit
  • TortoiseGitTortoiseGit
  • Issues
  • #3202
Closed
Open
Created Apr 20, 2018 by Sergey G. Brester@sebres

Delete of inactive branch inside not main working copy via TortoiseGit causes error: libgit2 returned: reference 'refs/heads/testbranch' not found.

What steps will reproduce the problem?

  1. Create a new working copy for any repository (git worktree add ... ./new-work-copy.dir)
  2. Call TortoiseGit Log window for new-work-copy.dir
  3. Create any new branch (e. g. testbranch).
  4. Try to delete this new inactive branch.

What is the expected output?

Branch should be deleted.

What do you see instead?

Could not delete reference
libgit2 returned: reference 'refs/heads/testbranch' not found.

What version of TortoiseGit and Git are you using? On what operating system?

Any, inclusive latest release/preview.

Please provide any additional information below.

  • Delete inside of new working copy directory via git command line works.
...\new-work-copy.dir > git branch -d testbranch
Deleted branch testbranch (was 116ad2906f).
  • Delete inside of main (primary) working copy directory via TortoiseGit Log window works.
Edited Apr 20, 2018 by Sergey G. Brester
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking