Git Daemon error with root path
Using TortoiseGit 1.8.15.2.
- 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.
Resulting output:
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
\
to/
when passing thebase-path
. - If the desired
base-path
has a trailing:\
then append.
; 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.)