Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepackaged repos refer to nonexisting remote #18

Open
gitqlt opened this issue May 24, 2020 · 2 comments
Open

Prepackaged repos refer to nonexisting remote #18

gitqlt opened this issue May 24, 2020 · 2 comments
Assignees
Labels

Comments

@gitqlt
Copy link

gitqlt commented May 24, 2020

So at some point I got stuck and copied repos/lab_40 to my working directory as cloned_hello. When I checked what I got I found that I have a remote named origin. However, the command

$ git remote show origin

resulted in a nonexistent absolute path error message (/Users/.../working/git/git_immersion/auto/hello)

I don't know if it is valid or not, but it seems that when editing the .git/config file in the cloned repo:

url = ../hello

git could get rid of that absolute path and that error message.

@gitqlt gitqlt changed the title prepackaged repos refer to nonexisting remote Prepackaged repos refer to nonexisting remote May 24, 2020
@tonywok tonywok added the bug label May 27, 2020
@tonywok
Copy link
Member

tonywok commented Jun 19, 2020

I familiarized myself with the build process when trying to fix #6. I'll try to figure this out when I get some free time. Thanks for reporting.

@tonywok tonywok self-assigned this Jun 19, 2020
@tonywok
Copy link
Member

tonywok commented Jun 20, 2020

Hmm, this might be tricky. The repos are built by actually running the commands in the lab programatically. What you're seeing is my build directory because I built labs last :P

I don't think git will set the relative path the way you suggest, unfortunately.

It looks like folks have had success with ~ to access the user's home directory. However, I don't think that will work for us since we don't know where git tutorial will be run from 🤔

Another idea would be to use a "bare repository" which seem to be more for sharing than the repositories in repos -- but I think it would move the ability to just copy the directory.

Open to ideas 😅 Perhaps we could just include a note in the lab to set it manually. Looks like the same problem in lab 50.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants