Subject: Re: [PATCH] bash prompt: test the prompt with newline in repository path

From: Johannes Sixt <[email-masked]>
Date: Fri, 16 Aug 2013 21:16:17 +0200

Am 16.08.2013 12:36, schrieb SZEDER Gábor:
> +repo_with_newline='repo
> +with
> +newline'
> +
> +test_expect_success 'prompt - with newline in path' '

This test must be skipped when the filesystem does not support LF in file 
names. Cf. the FUNNYNAMES prerequisite in t3600-rm.sh.

> +	printf " (master)" >expected &&
> +	git init "$repo_with_newline" &&
> +	test_when_finished "rm -rf \"$repo_with_newline\"" &&
> +	mkdir "$repo_with_newline"/subdir &&
> +	(
> +		cd "$repo_with_newline/subdir" &&
> +		__git_ps1 >"$actual"
> +	) &&
> +	test_cmp expected "$actual"
> +'

-- Hannes