Coder Social home page Coder Social logo

Comments (4)

spraints avatar spraints commented on September 21, 2024

Strange.

The stack trace is from gc --auto failing. I'm curious what the output of git gc --auto is, if you run it in the repository that you were creating when the exception happened.

Also, if you cd into the dir and do git tfs fetch, it should continue fetching (and hopefully finish).

Also, if this is repeatable, could you run git tfs clone --debug (args) > git-tfs-clone.log and send me the output?

from git-tfs.

 avatar commented on September 21, 2024

Here is the part where it fails. I am currently using git version 1.7.3.1.msysgit.0. I will send some more info after I get a chance to re-run it. Thanks!

C133543 = b0f6dd81bff7ad069b0b0d475b3abd7c9b325bd1
GC Countdown: 0
git command: Starting process: git gc --auto
git stderr: fatal: sha1 file 'z:/dev/tfsgit/Baseline/.git/objects/pack/tmp_pack_cWHswa' write error: Bad file descriptor
git stderr: Auto packing the repository for optimum performance. You may also
git stderr: run "git gc" manually. See "git help gc" for more information.
git stderr: error: failed to run repack
git command time: [00:02:57.4889186] gc --auto

from git-tfs.

spraints avatar spraints commented on September 21, 2024

I'm not sure why that's failing. It looks like it's git that's
failing. I think the fix for this will be to catch the exception,
issue a warning, and continue the clone.

Did doing git tfs fetch from the partially-cloned repository work for you?

On Tue, Mar 22, 2011 at 1:16 PM, radiantmnaquin
[email protected]
wrote:

Here is the part where it fails. I am currently using git version 1.7.3.1.msysgit.0. I will send some more info after I get a chance to re-run it. Thanks!

   C133543 = b0f6dd81bff7ad069b0b0d475b3abd7c9b325bd1
   GC Countdown: 0
   git command: Starting process: git gc --auto
   git stderr: fatal: sha1 file 'z:/dev/tfsgit/Baseline/.git/objects/pack/tmp_pack_cWHswa' write error: Bad file descriptor
   git stderr: Auto packing the repository for optimum performance. You may also
   git stderr: run "git gc" manually. See "git help gc" for more information.
   git stderr: error: failed to run repack
   git command time: [00:02:57.4889186] gc --auto

Reply to this email directly or view it on GitHub:
https://github.com/spraints/git-tfs/issues/30#comment_903822

from git-tfs.

 avatar commented on September 21, 2024

After some more research, I'm pretty sure this is a bug with git. For some reason, git gc --auto always gets stuck on trying to unlink a particular object. If I shut down git and run git gc --auto from the command line, it seems to work fine.

After that, I can run git tfs fetch and it picks up where it left off.

I'm not sure if there's much you can do here to fix it, but you might consider catching the exception, and then write out an error saying to run git gc --auto followed by git tfs fetch.

P.S. I really enjoy using git-tfs. It makes source control bearable :)

from git-tfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.