subtree: fix assumption about the directory separator
commit77f37de39fa96e4e5d59cda1e7e85c4784b48ee9
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 14 Jun 2021 12:41:53 +0000 (14 12:41 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Jun 2021 02:38:28 +0000 (15 11:38 +0900)
treeba31e25e0f72df4912997ad79bb12ae5a0a4f8d2
parentf7ee88f1d09ce47b8e12b52a2f19c7867ae10b29
subtree: fix assumption about the directory separator

On Windows, both forward and backslash are valid separators. In
22d550749361 (subtree: don't fuss with PATH, 2021-04-27), however, we
added code that assumes that it can only be the forward slash.

Let's fix that.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/subtree/git-subtree.sh