I’ve been trying to complete the Git LV1#2 lab on the Kodekloud Engineer platform for over a month now, but I’ve had no success so far.
I’ve tested every possible scenario, documented all my steps, and still nothing works. Even my peer reviewers couldn’t figure out the issue. At this point, it genuinely seems to be a bug, which makes the experience quite frustrating.
I reached out to Kodekloud support, but they redirected me here for further assistance.
git clone /opt/test.git /usr/src/myrepos/
this directly clones the /opt/test.git repository into /usr/src/myrepos/, it doesn’t create an additional folder test(name of the bare repo) under it.
cd /usr/src/myrepos/ git clone /opt/test.git
this will create a new folder inside the current directory named after the repo. /usr/src/myrepos/test/ This will be the actual cloned repository, in this case.
and maybe the test validation passes only if it finds that additional folder, so try it that way and see if it works.
That makes sense, and I can see how the difference in the cloning method could be the issue. I’ll give it a try and see if that resolves the problem. Appreciate your help
Hey, thanks a lot for the clarification, I tested it your way and it works perfectly !
I get it now… we’re supposed just to cd $dest and then git clone $src, letting Git create the folder automatically.
Based on the instructions, I thought we were supposed to explicitly clone into the directory at the provided destination path. Honestly though, the instructions could have been a bit clearer to avoid this kind of confusion.
Sorry for the extra noise, and thanks again for your help!
this works but this will create only test directory inside /usr/src/myrepos not other directories inside test directories like head,branches which present in /opt/test.git ,still it works i don’t no why? because in question they asked that Ensure no modifications are made to the repository during the cloning process.