Skip to content

Commit

Permalink
t0008: avoid absolute path
Browse files Browse the repository at this point in the history
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 <karsten.blees@gmail.com>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Pat Thoyts authored and Junio C Hamano committed Jan 28, 2016
1 parent fd318a9 commit 2b3abd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/t0008-ignores.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ test_description=check-ignore
. ./test-lib.sh

init_vars () {
global_excludes="$(pwd)/global-excludes"
global_excludes="global-excludes"
}

enable_global_excludes () {
Expand Down

0 comments on commit 2b3abd4

Please sign in to comment.