Skip to content

Commit cc4c77a

Browse files
dschoGit for Windows Build Agent
authored and
Git for Windows Build Agent
committed
Also leave Git's <rev>:./<name> syntax alone
This fixes Git's t1506-rev-parse-diagnosis.sh Signed-off-by: Johannes Schindelin <[email protected]>
1 parent be292d9 commit cc4c77a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

winsup/cygwin/msys2_path_conv.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,14 @@ path_type find_path_start_and_type(const char** src, int recurse, const char* en
372372
// Avoid mangling IPv6 addresses
373373
if (it + 1 < end && it[1] == ':')
374374
goto skip_p2w;
375+
376+
// Leave Git's <rev>:./name syntax alone
377+
if (it + 1 < end && it[1] == '.') {
378+
if (it + 2 < end && it[2] == '/')
379+
goto skip_p2w;
380+
if (it + 3 < end && it[2] == '.' && it[3] == '/')
381+
goto skip_p2w;
382+
}
375383
break;
376384
++it;
377385
}

0 commit comments

Comments
 (0)