From: Duy Nguyen Date: Mon, 09 Feb 2015 10:06:37 GMT Subject: Re: [PATCH] merge-file: correctly open files when in a subdir Message-ID: In-Reply-To: On Sun, Feb 8, 2015 at 11:53 PM, Aleksander Boruch-Gruszecki wrote: > run_setup_gently() is called before merge-file. This may result in changing > current working directory, which wasn't taken into account when opening a file > for writing. > > Fix by prepending the passed prefix. Previous var is left so that error > messages keep referring to the file from the user's working directory > perspective. Sounds about right. Thomas Rast fixed something similar in 55846b9 (merge-file: correctly find files when called in subdir - 2010-10-17) but he missed this part :-D. Perhaps a test case in t/t6023-merge-file.sh to prove this patch is working? -- Duy