Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • TortoiseGit TortoiseGit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 380
    • Issues 380
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • 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
Issue 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