[PATCH v2 15/19] Avoid absolute path in t0008
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jan 26, 2016, 14:35 UTC
- Message-ID
- <1d1dd22a4441f31b88531493001a5042710bf106.1453818790.git.johannes.schindelin@gmx.de>
- In-Reply-To
- <cover.1453818789.git.johannes.schindelin@gmx.de>
From: Pat Thoyts <patthoyts@users.sourceforge.net>
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> --- t/t0008-ignores.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/t0008-ignores.sh b/t/t0008-ignores.sh index 4ef5ed4..89544dd 100755 --- a/t/t0008-ignores.sh +++ b/t/t0008-ignores.sh @@ -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 () {
-- 2.7.0.windows.1.7.g55a05c8