Skip to content

Commit

Permalink
windows: fix --symlink_prefix=/ throwing exception
Browse files Browse the repository at this point in the history
Fixes #4421

RELNOTES: none
PiperOrigin-RevId: 181742216
  • Loading branch information
laszlocsomor authored and Copybara-Service committed Jan 12, 2018
1 parent d90a005 commit e543674
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ static void createOutputDirectoryLinks(
*/
public static PathFragment getPrettyPath(Path file, String workspaceName,
Path workspaceDirectory, String symlinkPrefix, String productName) {
if (NO_CREATE_SYMLINKS_PREFIX.equals(symlinkPrefix)) {
return file.asFragment();
}

for (String link : LINKS) {
PathFragment result = relativize(file, workspaceDirectory, symlinkPrefix + link);
if (result != null) {
Expand Down

0 comments on commit e543674

Please sign in to comment.