Skip to content

Commit c4c66b2

Browse files
hendebygitster
authored andcommitted
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 <[email protected]> Acked-by: Eric Wong <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 62a64d1 commit c4c66b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-svn.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ sub cmd_create_ignore {
614614
print GITIGNORE "$s\n";
615615
close(GITIGNORE)
616616
or fatal("Failed to close `$ignore': $!");
617-
command_noisy('add', $ignore);
617+
command_noisy('add', '-f', $ignore);
618618
});
619619
}
620620

0 commit comments

Comments
 (0)