Skip to content

Commit 2b3abd4

Browse files
patthoytsgitster
authored andcommitted
t0008: avoid absolute path
The colon is used by check-ignore to separate paths from other output values. If we use an absolute path, however, on Windows it will be converted into a Windows path that very much contains a colon. It is actually not at all necessary to make the path of the global excludes absolute, so let's just not even do that. Based on suggestions by Karsten Blees and Junio Hamano. Suggested-by: Karsten Blees <[email protected]> Signed-off-by: Pat Thoyts <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fd318a9 commit 2b3abd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t0008-ignores.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ test_description=check-ignore
55
. ./test-lib.sh
66

77
init_vars () {
8-
global_excludes="$(pwd)/global-excludes"
8+
global_excludes="global-excludes"
99
}
1010

1111
enable_global_excludes () {

0 commit comments

Comments
 (0)