From c4c66b2669113dd7c36d660b5294066d8435bd0f Mon Sep 17 00:00:00 2001 From: Gustaf Hendeby Date: Mon, 5 May 2008 00:33:09 +0200 Subject: [PATCH] git-svn: Make create-ignore use git add -f When having a svn:ignore that ignores the .gitignore file the -f option to git add must be used to avoid git complaining about adding an ignored file and hence stop the process of creating .gitignores. Signed-off-by: Gustaf Hendeby Acked-by: Eric Wong Signed-off-by: Junio C Hamano --- git-svn.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-svn.perl b/git-svn.perl index b70f8efaa..e47b1ea6c 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -614,7 +614,7 @@ sub cmd_create_ignore { print GITIGNORE "$s\n"; close(GITIGNORE) or fatal("Failed to close `$ignore': $!"); - command_noisy('add', $ignore); + command_noisy('add', '-f', $ignore); }); } -- 2.30.2