git-svn: Make create-ignore use git add -f
authorGustaf Hendeby <hendeby@isy.liu.se>
Sun, 4 May 2008 22:33:09 +0000 (00:33 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 May 2008 23:54:16 +0000 (16:54 -0700)
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>
git-svn.perl
index b70f8efaaa404d63c6a45486f8513348cbb368f5..e47b1ea6c1c19d3b5b9bf26ecbf6b0a0f32d08d6 100755 (executable)
@@ -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);
        });
 }