checkout: do not make a temporary copy of symlink target.
[gitweb.git] / fetch-clone.c
index 2b2aa15ea77b97da523a0befab26fb9e7abe948a..f46fe6ecbb775b965fb6110dc81746cd5bb230c5 100644 (file)
@@ -47,7 +47,7 @@ static int finish_pack(const char *pack_tmp_name, const char *me)
                if (retval < 0) {
                        if (errno == EINTR)
                                continue;
-                       error("waitpid failed (%s)", strerror(retval));
+                       error("waitpid failed (%s)", strerror(errno));
                        goto error_die;
                }
                if (WIFSIGNALED(status)) {