Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Oh My Git!

An open source game about learning Git! · By blinry, bleeptrack

Bug: workflows: Cloning a repo

A topic by Jul94 created May 13, 2021 Views: 1,058 Replies: 1
Viewing posts 1 to 2

Hello everyone!

First of all, congratulations for the game, it's very nice and I'm really enjoying so far!

I think I've found a bug in the workflows: Cloning a repo level. The problem has to do with the command "git clone ../friend", or more specifically, with the inability to change the working directory: when I clone the friend's repo using the card, everything works just fine (including using command line arguments instead of cards from that point on). The repository is cloned into the current working directory (/home/jul/.local/share/Oh My Git/tmp/repos/yours), and the file is copied to that directory as well.

However, when using the command "git clone ../friend" (as specified in the card), the repository is not cloned into my current working directory, but to a folder inside that directory (so /home/jul/.local/share/Oh My Git/tmp/repos/yours/friend). Because of that, all git commands don't work (I can still see the file as "friend/file"). They raise the following error:

fatal: not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

 So I guess just changing to the friend's directory would solve the issue, since that's where the repository actually is, but because of the "cd" command not working, I cannot change to that directory. Any idea what's causing this issue and how to solve it? I have tried to set the GIT_DISCOVERY_ACROSS_FILESYSTEM variable to 1 but didn't work.

The command is "git clone ../friend ." 

After friend there is a space and another dot. The card in the game is pretty confusing about that last space and dot.  The last bit will clone it into the current working directory.