summaryrefslogtreecommitdiff
path: root/server-info.c
diff options
context:
space:
mode:
authorAndré Goddard Rosa <andre.goddard@gmail.com>2007-11-21 20:59:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-11-26 00:53:32 (GMT)
commit84ef033832af9e0be886214c70b2006b08630072 (patch)
tree1b51eff84eb345dc891377bedba645f0bef2f890 /server-info.c
parent757f58ed380a17225e8de9f461083a21d0a2c97c (diff)
downloadgit-84ef033832af9e0be886214c70b2006b08630072.zip
git-84ef033832af9e0be886214c70b2006b08630072.tar.gz
git-84ef033832af9e0be886214c70b2006b08630072.tar.bz2
Print the real filename that we failed to open.
When we fail to open a temporary file to be renamed to something else, we reported the final filename, not the temporary file we failed to open. Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'server-info.c')
-rw-r--r--server-info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server-info.c b/server-info.c
index 0d1312c..a051e49 100644
--- a/server-info.c
+++ b/server-info.c
@@ -35,7 +35,7 @@ static int update_info_refs(int force)
safe_create_leading_directories(path0);
info_ref_fp = fopen(path1, "w");
if (!info_ref_fp)
- return error("unable to update %s", path0);
+ return error("unable to update %s", path1);
for_each_ref(add_info_ref, NULL);
fclose(info_ref_fp);
adjust_shared_perm(path1);