Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

Gido ten Cate
Gido ten Cate
10,966 Points

git review -s Problems encountered installing commit-msg hook

This is my first question so the markup isn't that great sorry.

Every time I use git review -s or git review in general I get this :

klanten-pers (master) $ git review -s Problems encountered installing commit-msg hook The following command failed with exit code 255 scp -P29418 gido.ten.cate@ci.indicia.nl:hooks/commit-msg .git/hooks/commit-msg 0 [main] scp 1628 C:\Program Files\Git\usr\bin\scp.exe: *** fatal error in forked process - fork: can't reserve memory for parent stack 0x600000 - 0x800000, (child has 0x400000 - 0x600000), Win32 error 487 614 [main] scp 1628 cygwin_exception::open_stackdumpfile: Dumping stack trace to scp.exe.stackdump 0 [main] scp 5896 fork: child -1 - forked process 1628 died unexpectedly, retry 0, exit code 0x100, errno 11 fork: Resource temporarily unavailable

I searched the internet and tried everything I could of but I cant fix it.

I am on Windows 10 using Git bash.

2 Answers

Gido ten Cate
Gido ten Cate
10,966 Points
  • important link *

Follow these steps to make it work again:

solution link

I fixed the problem. I needed to add msg-hook to the git folder again. So in my case it was :

+C:\Program Files\Git\mingw64\share\git-core\templates\hooks

and after you add it you need to give it the permissions to be executeable. You can also do it into de specific repository in question. but then it would be :

+-- repository/.git/hooks

Some other Git review -s problems and solutions :

other problems and fixes link

Hi,

I've never used git-review myself so I can't give you much insight, but have you looked at: https://www.mediawiki.org/wiki/Gerrit/git-review#Troubleshooting_for_Windows ?

It looks like it may be relevant to your error message.