ajoslin / angular-scrolly

Fake transform-scrolling with angular-friendly utilities
http://ajoslin.github.io/angular-scrolly
65 stars 7 forks source link

copyFileSync: could not write to dest file (code=ENOENT):.git/hooks/commit-msg #13

Closed bugwelle closed 11 years ago

bugwelle commented 11 years ago

Hello,

I know I have been submitting many issues , but I think this might be an issue, too:

Using latest code and running sudo grunt build throws this error:

cp: copyFileSync: could not write to dest file (code=ENOENT):.git/hooks/commit-msg

By creating the folder hooks manually in .git, I don't get this error.

Note: I'm using sudo because otherwise I get this error:

ngminifying src/_main.js,src/directives/scroll.js,src/services/dragger.js,src/services/scroller.js,src/services/transformer.js
Warning: Unable to write "dist/angular-scrolly.js" file (Error code: EACCES). Use --force to continue.

I think some files don't have the required permission.

Does someone know how to fix this?

Thanks, Andre

ajoslin commented 11 years ago

What OS are you using, and what version of git?

git should create the hooks folder for you.

bugwelle commented 11 years ago

Sorry, I forgot to write that:

// I'm using the GitHub client on Mac ;)

ajoslin commented 11 years ago

Haha I dunno then!

We should probably just use the grunt.file.copy command, as that creates folders if they don't exist.

Could you open a PR which uses grunt.file.copy instead of the shelljs cp?

bugwelle commented 11 years ago

Just updated to git 1.8.3.4. Still doesn't work. Using grunt.file.copy is a great idea. I don't have time to open a PR right now, but I think I can do tomorrow :)

ajoslin commented 11 years ago

Fixed in b4daccd9913f2bfc40d37efc4b8b47fd5bbe0787