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 <hendeby@isy.liu.se> Acked-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Gustaf Hendeby committed
May 5, 2008 at 00:33 UTC
c4c66b2669113dd7c36d660b5294066d8435bd0f
1 file changed
+1
-1
git-svn.perl
+1
-1
@@ -614,7 +614,7 @@ sub cmd_create_ignore {
614
print GITIGNORE "$s\n";
615
close(GITIGNORE)
616
or fatal("Failed to close `$ignore': $!");
617
- command_noisy('add', $ignore);
617
+ command_noisy('add', '-f', $ignore);
618
});
619
}
620