Skip to content

Conversation

@faza
Copy link
Contributor

@faza faza commented Sep 21, 2021

No description provided.

@faza faza merged commit 1338777 into master Sep 21, 2021
faza pushed a commit that referenced this pull request Dec 26, 2022
There are cases (`git ls-remote`) where no files are written to disk,
nor are any files read from disk. When Git invokes the remote helper
in these scenarios, `GIT_DIR` may be provided if the command is run
inside a worktree. However, this is not guaranteed - if the command
is run with no worktree then `GIT_DIR` remains unset and resolves to
an empty string in Go. The `os.MkdirAll` call should not happen
internally in such scenario.

This will enable Ansible to create a `Gitopia://` repository from
scratch, with no human interaction, as it does such checks internally.

Closes #9.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants