{"thread":{"id":"29313","subject":"submodule add -f errs on un-ignored path","startedAt":"2012-01-07T22:59:50Z","lastAt":"2012-01-09T15:40:33Z","messageCount":2,"participants":["Neal Kreitzinger","Thomas Rast"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"182080","messageId":"jeaip7$meo$1@dough.gmane.org","threadId":"29313","inReplyTo":null,"subject":"submodule add -f errs on un-ignored path","fromName":"Neal Kreitzinger","fromEmail":"neal@rsss.com","sentAt":"2012-01-07T22:59:50Z","receivedAt":"2012-01-07T22:59:50Z","isPatch":false,"sender":{"key":"neal@rsss.com","avatar":null},"body":"git submodule add tells me to use -f because the path is ignored in \ngitconfig (even though I un-ignored it in .git/info/exclude), but with -f it \ngive usage error.  (git 1.7.1)  Is this rejection by git intentional or \nunexpected?  (This is my first foray into submodules.)\n\n/etc/gitconfig is set to excludesfile that ignores:  \"WebPortal/Images/\" \nentry\n\nlocal .git/info/exclude is set to un-ignore it:\ncat .git/info/exclude\n!WebPortal/Images/\n!WebPortal/Images\n!WebPortal\\/Images\\/\n!WebPortal\\/Images\n!WebPortal\\/Images/\n\n$ git submodule add file:///home/me/super/Images.git WebPortal/Images\nAdding existing repo at 'WebPortal/Images' to the index\nThe following paths are ignored by one of your .gitignore files:\nWebPortal/Images\nUse -f if you really want to add them.\nfatal: no files added\nFailed to add submodule 'WebPortal/Images'\n$ git submodule add -f file:///home/me/super/Images.git WebPortal/Images\nUsage: git submodule [--quiet] add [-b branch] [--reference <repository>] \n[--] <\nrepository> [<path>]\n   or: git submodule [--quiet] status [--cached] [--recursive] [--] \n[<path>...]\n   or: git submodule [--quiet] init [--] [<path>...]\n   or: git submodule [--quiet] update [--init] [-N|--no-fetch] [--rebase] \n[--ref\nerence <repository>] [--merge] [--recursive] [--] [<path>...]\n   or: git submodule [--quiet] summary [--cached|--files] [--summary-limit \n<n>]\n[commit] [--] [<path>...]\n   or: git submodule [--quiet] foreach [--recursive] <command>\n   or: git submodule [--quiet] sync [--] [<path>...]\n\nv/r,\nneal\n"},{"id":"182164","messageId":"8739borij2.fsf@thomas.inf.ethz.ch","threadId":"29313","inReplyTo":"jeaip7$meo$1@dough.gmane.org","subject":"Re: submodule add -f errs on un-ignored path","fromName":"Thomas Rast","fromEmail":"trast@student.ethz.ch","sentAt":"2012-01-09T15:40:33Z","receivedAt":"2012-01-09T15:40:33Z","isPatch":false,"sender":{"key":"tr@thomasrast.ch","avatar":"https://avatars.githubusercontent.com/u/153510?v=4"},"body":"\"Neal Kreitzinger\" <neal@rsss.com> writes:\n\n> $ git submodule add -f file:///home/me/super/Images.git WebPortal/Images\n> Usage: git submodule [--quiet] add [-b branch] [--reference <repository>] [--] repository [<path>]\n\nAFAICT this works since 1.7.2 (d27b876 to be precise).  Before that the\n-f option didn't exist, and wasn't in the docs either.\n\n-- \nThomas Rast\ntrast@{inf,student}.ethz.ch\n"}]}