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
  • #1648
Closed
Open
Issue created Aug 02, 2015 by Sven Strickroth@mrtuxOwner

Issue with handles being kept when there are uncommitted changes

By Xhmik... on February 12, 2013 19:16 (imported from Google Code)


I will use https://github.com/XhmikosR/notepad2-mod.git as an example, but this should happen with any repository.

What steps will reproduce the problem?

  1. Check out https://github.com/XhmikosR/notepad2-mod.git
  2. Change any file from the repo but don't commit your changes
  3. Run git gc --aggressive --prune=now

What is the expected output? What do you see instead?

I'd expect git gc to finish without errors but instead:

H:\progs\Compiling\notepad2-mod>git gc --aggressive --prune=now
Counting objects: 6334, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (6297/6297), done.
Writing objects: 100% (6334/6334), done.
Total 6334 (delta 4917), reused 1417 (delta 0)
mv: cannot move I will use https://github.com/XhmikosR/notepad2-mod.git as an example, but this should happen with any repository.

What steps will reproduce the problem?

  1. Check out https://github.com/XhmikosR/notepad2-mod.git
  2. Change any file from the repo but don't commit your changes
  3. Run git gc --aggressive --prune=now

What is the expected output? What do you see instead?

I'd expect git gc to finish without errors but instead:

H:\progs\Compiling\notepad2-mod>git gc --aggressive --prune=now
Counting objects: 6334, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (6297/6297), done.
Writing objects: 100% (6334/6334), done.
Total 6334 (delta 4917), reused 1417 (delta 0)
mv: cannot move /h/progs/Compiling/notepad2-mod/.git/objects/pack/pack-07357538e0dcef27f046f22888c658c500b17a36.pack' to I will use https://github.com/XhmikosR/notepad2-mod.git as an example, but this should happen with any repository.

What steps will reproduce the problem?

  1. Check out https://github.com/XhmikosR/notepad2-mod.git
  2. Change any file from the repo but don't commit your changes
  3. Run git gc --aggressive --prune=now

What is the expected output? What do you see instead?

I'd expect git gc to finish without errors but instead:

H:\progs\Compiling\notepad2-mod>git gc --aggressive --prune=now
Counting objects: 6334, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (6297/6297), done.
Writing objects: 100% (6334/6334), done.
Total 6334 (delta 4917), reused 1417 (delta 0)
mv: cannot move `/h/progs/Compiling/notepad2-mod/.git/objects/pack/pack-07357538e0dcef27f046f22888c658c500b17a36.pack' to /h/progs/Compiling/notepad2-mod/.git/objects/pack/old-pack-07357538e0dcef27f046f22888c658c500b17a36.pack'
error: failed to run repack

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

Windows 7 64-bit, TortoiseGit 1.8.1.0 , git version 1.8.1.msysgit.1

If I revert the changes and wait a little bit (perhaps for tgit to refresh the icons?) then git gc completes successfully.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking