Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

We're transitioning from cvs to git, and I have a test setup where I have a git server that authenticates users with LDAP, let's call it REMOTE, and then my personal machine, let's call it LOCAL. Both machines are Macs. All employees of the company (including me) are members of a group I'll cleverly call GROUP.

I ssh'd to REMOTE as me and created a git repository there in a folder named /git/PROJECT.git using cvs2git.

Then, back on LOCAL, I did:

git clone USER@REMOTE:/git/PROJECT.git

which was fine. On my Mac ("LOCAL") I then edited a few files, deleted a couple, and did

git -a FILES
git rm FILES
git commit -m 'COMMENT'

and life was good.

Then (still on LOCAL) I executed:

git push

to push my changes from LOCAL back to REMOTE and got this:

Counting objects: 19, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (10/10), 1.46 KiB, done.
Total 10 (delta 8), reused 0 (delta 0)
remote: error: unable to create temporary file: No such file or directory
remote: fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To USER@git-server-co.local:/git/PROJECT.git
 ! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'USER@git-server-co.local:/git/PROJECT.git'

I researched this problem and it sounded like it might be that might $TMPDIR is wrong, so I ssh'ed to REMOTE, created a directory named /git/tmp, made sure it had write permissions, edited my .bashrc, and set $TMPDIR to /git/tmp.

Back on LOCAL, if I execute


I correctly see the response


If I ssh to REMOTE and check file permissions, here's what I see:

ls -l /git
drwxrwxrwx  USER GROUP   tmp
drwxrwsr-x  USER  GROUP   PROJECT.git

ls -l /git/PROJECT.git

all files are rw for owner (me) and group

What else could be causing this error?

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.