[gitg] Always override format patch export



commit 1e64689d867c84eb47fd192514fe76b2a4311040
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Sat May 29 18:00:23 2010 +0200

    Always override format patch export

 gitg/gitg-branch-actions.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gitg/gitg-branch-actions.c b/gitg/gitg-branch-actions.c
index 6988036..d9743f0 100644
--- a/gitg/gitg-branch-actions.c
+++ b/gitg/gitg-branch-actions.c
@@ -1882,10 +1882,12 @@ gitg_branch_actions_format_patch (GitgWindow     *window,
 	g_return_val_if_fail (destination != NULL, NULL);
 
 	GitgRunner *ret;
-	GitgRepository *repository = gitg_window_get_repository (window);
 
 	GFile *file = g_file_new_for_uri (destination);
-	GFileOutputStream *stream = g_file_create (file, 0, NULL, NULL);
+	GFileOutputStream *stream = g_file_create (file,
+	                                           G_FILE_CREATE_REPLACE_DESTINATION,
+	                                           NULL,
+	                                           NULL);
 	g_object_unref (file);
 
 	if (!stream)



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