git-repo
git-repo copied to clipboard
fatal error on repo init
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
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
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 did you ever figure this issue out? I am encountering the same thing
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 .