Code

diff.c: fix typoes in comments
[git.git] / run-command.c
index b05c734d05e99cd009a0df26f0fc95fa13ae6f25..ff3d8e2d8bf3208b7ad0f29d7cf76cc84a4ad0e6 100644 (file)
@@ -101,12 +101,12 @@ int start_command(struct child_process *cmd)
                }
 
                if (cmd->dir && chdir(cmd->dir))
-                       die("exec %s: cd to %s failed (%s)", cmd->argv[0],
-                           cmd->dir, strerror(errno));
+                       die_errno("exec '%s': cd to '%s' failed", cmd->argv[0],
+                           cmd->dir);
                if (cmd->env) {
                        for (; *cmd->env; cmd->env++) {
                                if (strchr(*cmd->env, '='))
-                                       putenv((char*)*cmd->env);
+                                       putenv((char *)*cmd->env);
                                else
                                        unsetenv(*cmd->env);
                        }