-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: ENOENT, No such file or directory 'packed-refs' #1
Comments
Is this still an issue? I want the code to always get the correct HEAD sha no matter what valid state the git repo is in. |
Ya it's pretty much fixed. Like I said, I just had to run I guess if somebody else tried this module on a bare repo without that file in it the same error would happen, which is why I was suggesting to check the existence of the file first. The error is gone for me though... |
How do I ensure that my remote repository uses packed-refs? I am trying to deploy wheat on nodester platform... the main nodester remote at least does not do pack-refs, and is in a locked-down chroot with no "git" binary or even the correct libraries to run So, I've verified that I have |
@XULRunner42, if you don't have a |
Ok thanks! I am working with nodester guys to redeploy their hosted
|
When attempting to use this lib on a "bare" git repo with a single commit pushed to it, I get this:
When does the
packed-refs
file get created in Git? I worked around it by commenting out everything related topacked-refs
in theGit.getHead
method, and it seems to work fine, but obviously that's not the right way.Any heads up? Or I guess
node-git
should be patched to check for the existence of that file before trying to read it, so that this error never happens :)EDIT: I was further able to fix the error by simply running:
and then the
packed-refs
file was created. I'm still in favor of checking for the existence of the file first. I'll try and get a patch ready if I have time.The text was updated successfully, but these errors were encountered: