Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I've moved my users home directory from /Users/romeovs to /Volumes/DATA/home and ever since I get a git error.

Whenever I use git clone or git init it replies:

 fatal: Failed to expand user dir in: '~git/init'

has anyone had this problem? I tried reinstalling git from hombrew but that didn't fix it (I am using the homebrew installed git from /usr/local/Cellar)

share|improve this question
    
Did you just move the directory? –  Gerry Mar 29 '13 at 9:28
    
yes I copied all the files and then went into 'System Preferences > Users and Groups > [username] > Advanced Options...' and changed the Home Directory to match this. Then I did sudo rm -r /Users/username to remove old userdir. –  romeovs Mar 29 '13 at 9:38
    
What does cd ~ result to in the shell? Also why did you move your entire home directory to an external volume? That probably is a bad idea to start with. –  Gerry Mar 29 '13 at 9:41
    
cd ~ works perfectly fine. as does the rest of my computer / shell. –  romeovs Mar 29 '13 at 10:13
    
Maybe a wrong configuration directive? git config -l –  Gerry Mar 29 '13 at 10:36
show 1 more comment

1 Answer

up vote 1 down vote accepted

The problem was indeed a faulty configuration directive:

[init]
     templatedir=~git/init

which I accidently copied from another machine, without copying the template directory as well.

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.