git-repo icon indicating copy to clipboard operation
git-repo copied to clipboard

fatal error on repo init

Open c3ph3us opened this issue 9 years ago • 4 comments

i did all steps u mention on main page and when i run repo init -u https://github.com/......git -b .... i get :

fatal: cannot make 'user dir here' /.repoconfig-esrlabs directory: system couldn't find directory

same for git clone then repo init

same with windows terminal or gitbash

c3ph3us avatar Jan 24 '16 07:01 c3ph3us

Thank you for the issue!

So in the code we are at the line in the repo file

home_dot_repo = os.path.expanduser('~/.repoconfig-esrlabs')

, so "expanduser" is not working. The python reference https://docs.python.org/2/library/os.path.html states that the user's homedir "~" path on Windows is taken from HOME and/or USERPROFILE.

So, does the following return your user's home dir? (git bash)

echo $HOME
echo $USERPROFILE

mputz86 avatar Mar 18 '16 09:03 mputz86

The 2nd one returns empty for me, I have the same issue.

Darwin 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64

my exact error message. for what it's worth:

[~/code/harrow]$ repo init
error: in `init`: [Errno 2] No such file or directory: '/Users/leehambley/.repo/manifests/.git/HEAD'
error: manifest missing or unreadable -- please run init

leehambley avatar Apr 06 '16 11:04 leehambley

@leehambley did you ever figure this issue out? I am encountering the same thing

APalumbo97 avatar Aug 17 '20 18:08 APalumbo97

I did not, sorry, these days there are a lot of 'repo' implementations - I'd bet that with WSL2 you can use most ant of them.

On Mon, 17 Aug 2020, 20:01 Anthony Palumbo, [email protected] wrote:

@leehambley https://github.com/leehambley did you ever figure this issue out? I am encountering the same thing

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/esrlabs/git-repo/issues/32#issuecomment-675027657, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAEUCEX5SB2BUUUHZ5KZADSBFV7PANCNFSM4BZMLRDQ .

leehambley avatar Aug 17 '20 20:08 leehambley