Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Hendeby <hendeby@isy.liu.se>2008-05-05 02:33:09 +0400
committerJunio C Hamano <gitster@pobox.com>2008-05-06 03:54:16 +0400
commitc4c66b2669113dd7c36d660b5294066d8435bd0f (patch)
tree17078a6cdcd1dc8437c337c58e75b319cefe77bb /git-svn.perl
parent62a64d1a6b8d1efad13f3f2e5310dc0e8f2f1dc7 (diff)
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>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-xgit-svn.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-svn.perl b/git-svn.perl
index b70f8efaaa..e47b1ea6c1 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);
});
}