author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Sun, 2 Mar 2008 07:40:33 +0000 (07:40 +0000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 2 Mar 2008 09:58:31 +0000 (01:58 -0800) | ||
commit | e371a4c648e72673fcfdf0b45192857dd149e2f5 | |
tree | 3c2e809b09ef02641e13880fc4491614f7c35275 | tree | snapshot |
parent | 2b459b483cb264d3e9a39cd7857da2ccab08179f | commit | diff |
Fix make_absolute_path() for parameters without a slash
When passing "xyz" to make_absolute_path(), make_absolute_path()
erroneously tried to chdir("xyz"), and then append "/xyz". Instead,
skip the chdir() completely when no slash was found.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When passing "xyz" to make_absolute_path(), make_absolute_path()
erroneously tried to chdir("xyz"), and then append "/xyz". Instead,
skip the chdir() completely when no slash was found.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
path.c | diff | blob | history | |
t/t0000-basic.sh | diff | blob | history |