Re: [PATCH] cmd_config(): Make a copy of path obtained from git_path()

2014-11-17 Thread Junio C Hamano
Michael Haggerty writes: > The strings returned by git_path() are recycled after a while. So make > a copy of the config filename rather than holding onto the return > value from git_path(). Good thinking. I agree that is an accident waiting to happen. -- To unsubscribe from this list: send the

[PATCH] cmd_config(): Make a copy of path obtained from git_path()

2014-11-15 Thread Michael Haggerty
The strings returned by git_path() are recycled after a while. So make a copy of the config filename rather than holding onto the return value from git_path(). Signed-off-by: Michael Haggerty --- This patch is an improvement by itself, and it also eases the merging to master of my fix for the inc