git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Neal Kreitzinger" <neal@rsss.com>
To: git@vger.kernel.org
Subject: submodule add -f errs on un-ignored path
Date: Sat, 7 Jan 2012 16:59:50 -0600	[thread overview]
Message-ID: <jeaip7$meo$1@dough.gmane.org> (raw)

git submodule add tells me to use -f because the path is ignored in 
gitconfig (even though I un-ignored it in .git/info/exclude), but with -f it 
give usage error.  (git 1.7.1)  Is this rejection by git intentional or 
unexpected?  (This is my first foray into submodules.)

/etc/gitconfig is set to excludesfile that ignores:  "WebPortal/Images/" 
entry

local .git/info/exclude is set to un-ignore it:
cat .git/info/exclude
!WebPortal/Images/
!WebPortal/Images
!WebPortal\/Images\/
!WebPortal\/Images
!WebPortal\/Images/

$ git submodule add file:///home/me/super/Images.git WebPortal/Images
Adding existing repo at 'WebPortal/Images' to the index
The following paths are ignored by one of your .gitignore files:
WebPortal/Images
Use -f if you really want to add them.
fatal: no files added
Failed to add submodule 'WebPortal/Images'
$ git submodule add -f file:///home/me/super/Images.git WebPortal/Images
Usage: git submodule [--quiet] add [-b branch] [--reference <repository>] 
[--] <
repository> [<path>]
   or: git submodule [--quiet] status [--cached] [--recursive] [--] 
[<path>...]
   or: git submodule [--quiet] init [--] [<path>...]
   or: git submodule [--quiet] update [--init] [-N|--no-fetch] [--rebase] 
[--ref
erence <repository>] [--merge] [--recursive] [--] [<path>...]
   or: git submodule [--quiet] summary [--cached|--files] [--summary-limit 
<n>]
[commit] [--] [<path>...]
   or: git submodule [--quiet] foreach [--recursive] <command>
   or: git submodule [--quiet] sync [--] [<path>...]

v/r,
neal

             reply	other threads:[~2012-01-07 23:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-07 22:59 Neal Kreitzinger [this message]
2012-01-09 15:40 ` submodule add -f errs on un-ignored path Thomas Rast

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='jeaip7$meo$1@dough.gmane.org' \
    --to=neal@rsss.com \
    --cc=git@vger.kernel.org \
    /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).