-
Notifications
You must be signed in to change notification settings - Fork 263
Description
I found the issue on my Mac machine, with retrieving the username from the .env file. The issue arose because my Github and Mac machine usernames were different.
On the following line in create.py
username = os.getenv("USERNAME")
My Mac machine username was somehow being retrieved instead of the Github username I had set in the .env file. This was causing the command git remote add origin <git@github.com:$USERNAME/$1.git> to insert the wrong username, causing it to fail.
Renaming the USERNAME to GITHUBUSERNAME in the codebase alleviated the issue.
That is, and in the .env files, the following was changed:
In create.py
username = os.getenv("GITHUBUSERNAME")
In .my_commands.sh
git remote add origin https://github.com/$GITHUBUSERNAME/$1.git
And .env file
GITHUBUSERNAME="<my_username>"