Comments (4)
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.
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.
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 --autoReply to this email directly or view it on GitHub:
https://github.com/spraints/git-tfs/issues/30#comment_903822
from git-tfs.
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)
- Error while cloning branches by using command. - git tfs clone https://TFSURL/tfs/defaultcollection/ $/ProjectName/Ressursstyring/src/next . --branches=all HOT 2
- How is v0.33.0 supporting Vs2022 as mentioned in the release notes? HOT 3
- Exclude folders from migration. HOT 2
- "GitTfs.Core.GitTfsException: Nothing to checkin!" on "git tfs rcheckin" HOT 5
- Cannot verify the migrated repository 'Unable to cast object of type ....' HOT 3
- Feature Request : Submit git-tfs to winget HOT 2
- .gitattributes ignored HOT 6
- I couldn't run them at first, but then managed to run Checkin Policies on VS2022 HOT 1
- Crash if no VS installed
- Case changing renames in TFS are ignored HOT 4
- How does --ignore-branches-regex work? HOT 7
- rcheckin not working as expected? HOT 1
- TFVC to git repo migration - getting name case mismatch error when using git tfs verify
- git blame is blaming person, who branched out the branch
- fetch a TFS branch with --parents results in a NO-OP or I am using it wrong HOT 2
- Feature request: git-tfs verify ignore whitespace and/or line ending differences. HOT 2
- p11 HOT 1
- Can I add changesets to a cloned repository locally? HOT 5
- Feature Request - Rate Limit Consideration in Git-TFS for Azure DevOps - HTTP Status Code 429 Too Many Requests
- git-tfs quick clone
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-tfs.