Git Daemon error with root path
Using TortoiseGit 184.108.40.206.
- Create a git repository in the root of a drive, OR execute
subst s: c:\path\to\existing\git
- From anywhere within the repository (accessed via the drive letter), select TortoiseGit -> Daemon and acknowledge the warning.
git.exe daemon --verbose --export-all --base-path="S:\" fatal: base-path 'S:"' does not exist or is not a directory
This is a mismatch between the intent of TortoiseGit passing the parameter vs. git's parsing of the parameter.
Suggested fix, one of:
- Convert all
/when passing the
- If the desired
base-pathhas a trailing
.; otherwise if there is a trailing
\then strip it.
(Both of these work with GfW2; I haven't tested other gits. I also haven't tested if option 1 is UNC-safe, but then daemon-sharing a git repo from a UNC path is a bit weird.)