git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gustaf Hendeby <hendeby@isy.liu.se>
To: git@vger.kernel.org
Cc: gitster@pobox.com, normalperson@yhbt.net,
	Gustaf Hendeby <hendeby@isy.liu.se>
Subject: [PATCH] git-svn: Make create-ignore use git add -f
Date: Mon,  5 May 2008 00:33:09 +0200	[thread overview]
Message-ID: <1209940390-22622-1-git-send-email-hendeby@isy.liu.se> (raw)

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>
---
 git-svn.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git-svn.perl b/git-svn.perl
index 81afb5c..d6d7b1a 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -612,7 +612,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);
 	});
 }
 
-- 
1.5.5.1.246.gafa4

             reply	other threads:[~2008-05-04 22:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-04 22:33 Gustaf Hendeby [this message]
2008-05-04 22:33 ` [PATCH] Documentation: Add create-ignore to git svn manual Gustaf Hendeby
2008-05-05  4:04   ` Eric Wong
2008-05-05  4:04 ` [PATCH] git-svn: Make create-ignore use git add -f Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1209940390-22622-1-git-send-email-hendeby@isy.liu.se \
    --to=hendeby@isy.liu.se \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=normalperson@yhbt.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).