Skip to content

Commit

Permalink
mingw: use proper quoting of the tr argument in t5580
Browse files Browse the repository at this point in the history
The use of a trailing backslash in an argument to the `tr` command is not
portable. While this test case is very specific to Windows, anyway, we
still should avoid that warning.

Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho authored and jamill committed Sep 5, 2018
1 parent 4f61738 commit f55560c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/t5580-clone-push-unc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ esac

test_expect_success 'clone into absolute path lacking a drive prefix' '
USINGBACKSLASHES="$(echo "$WITHOUTDRIVE"/without-drive-prefix |
tr / \\)" &&
tr / \\\\)" &&
git clone . "$USINGBACKSLASHES" &&
test -f without-drive-prefix/.git/HEAD
'
Expand Down

0 comments on commit f55560c

Please sign in to comment.