Re: Merge problems with git-mingw

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Sixt
Date: Tuesday, October 9, 2007 - 10:03 am

Steffen Prohaska schrieb:

Thank you. Here is a quick-fix.

-- Hannes

diff --git a/compat/mingw.c b/compat/mingw.c
index 8bb0dba..361216f 100644
--- a/compat/mingw.c
+++ b/compat/mingw.c
@@ -303,7 +303,7 @@ void openlog(const char *ident, int option,
  {
  }

-static const char *quote_arg(const char *arg)
+const char *quote_arg(const char *arg)
  {
  	/* count chars to quote */
  	int len = 0, n = 0;
diff --git a/exec_cmd.c b/exec_cmd.c
index bad4843..7ab5a0f 100644
--- a/exec_cmd.c
+++ b/exec_cmd.c
@@ -129,7 +129,8 @@ int execv_git_cmd(const char **argv)
  		 */

  		tmp = argv[0];
-		argv[0] = git_command;
+		extern const char *quote_arg(const char *arg);
+		argv[0] = quote_arg(git_command);

  		trace_argv_printf(argv, -1, "trace: exec:");


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Merge problems with git-mingw, Peter Karlsson, (Mon Oct 8, 4:06 am)
Re: Merge problems with git-mingw, Lars Hjemli, (Mon Oct 8, 5:00 am)
Re: Merge problems with git-mingw, Peter Karlsson, (Mon Oct 8, 5:33 am)
Re: Merge problems with git-mingw, Lars Hjemli, (Mon Oct 8, 6:10 am)
Re: Merge problems with git-mingw, Peter Karlsson, (Mon Oct 8, 7:56 am)
Re: Merge problems with git-mingw, Lars Hjemli, (Mon Oct 8, 12:59 pm)
Re: Merge problems with git-mingw, Johannes Sixt, (Mon Oct 8, 11:10 pm)
Re: Merge problems with git-mingw, Peter Karlsson, (Tue Oct 9, 12:06 am)
Re: Merge problems with git-mingw, Johannes Sixt, (Tue Oct 9, 12:36 am)
Re: Merge problems with git-mingw, Peter Karlsson, (Tue Oct 9, 1:56 am)
Re: Merge problems with git-mingw, Johannes Sixt, (Tue Oct 9, 2:03 am)
Re: Merge problems with git-mingw, Steffen Prohaska, (Tue Oct 9, 9:33 am)
Re: Merge problems with git-mingw, Johannes Sixt, (Tue Oct 9, 10:03 am)
Re: Merge problems with git-mingw, Linus Torvalds, (Tue Oct 9, 11:09 am)