svn: allow branches outside of refs/remotes
[gitweb.git] / run-command.c
index 71f83368c4e97357c782658135982e89c13ae414..f3e7abb7de799a14a8f792195992c4d9d1495c6f 100644 (file)
@@ -109,8 +109,8 @@ 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, '='))