Browse Source

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>
maint
Gustaf Hendeby 17 years ago committed by Junio C Hamano
parent
commit
c4c66b2669
  1. 2
      git-svn.perl

2
git-svn.perl

@ -614,7 +614,7 @@ sub cmd_create_ignore { @@ -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);
});
}


Loading…
Cancel
Save