Re: [PATCH] Handle double slashes in make_relative_path()
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 23, 2010, 20:14 UTC
- Message-ID
- <7viqasbmtc.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <7vwrz8bnbj.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 11 quoted lines
> I think one issue is what happens when you did this: > > cd //server > git --git-dir=//server/repo/repo.git --work-tree=repo > > Does msysgit implementation figures out that the work tree is located at > "//server/repo" when get_git_work_tree() is asked to produce an absolute > path so that it can be compared with //server/repo/repo.git with the code? > If it does (with the leading double slash), then "doubled slahses fix" is > a regression we should do something about it. If it doesn't, then it > probably doesn't matter.
Nah, I wasn't thinking straight. What happens if you did this?
git --git-dir=//git/repo/repo.git --work-tree=/git/repo
where "//git/repo" is on the "git server" and you are working in local hierarchy "/git/repo"?