[giggle] libgiggle-git/giggle-git-add.c: fix to add files that contain spaces



commit 85a9a5aee6d7f6da07ad206425575052c6246c09
Author: Pierre Dureau <pdureau linagora com>
Date:   Thu Dec 15 17:45:05 2011 +0000

    libgiggle-git/giggle-git-add.c: fix to add files that contain spaces
    
    When you add a file to the repository,
    the file is not added if its filename contains a space.

 libgiggle-git/giggle-git-add.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgiggle-git/giggle-git-add.c b/libgiggle-git/giggle-git-add.c
index d331b2d..7672ada 100644
--- a/libgiggle-git/giggle-git-add.c
+++ b/libgiggle-git/giggle-git-add.c
@@ -142,7 +142,7 @@ git_add_get_command_line (GiggleJob *job, gchar **command_line)
 	str = g_string_new (GIT_COMMAND " add");
 
 	while (files) {
-		g_string_append_printf (str, " %s", (gchar *) files->data);
+		g_string_append_printf (str, " \"%s\"", (gchar *) files->data);
 		files = files->next;
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]