Git unable to create temporary object directory

error: remote unpack failed

Ensure your remote URL has the git username in it, for example:
git remote -v

Should read:
origin git@1.2.3.4:/home/git/project.git

If you're getting an error, it may be that you are missing the git@.

For example, this would be wrong:
origin 1.2.3.4:/home/git/project.git