[bug] git-add won't add foo/.git/bar

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

[bug] git-add won't add foo/.git/bar

From: Michael Gebetsroither <hidden>
Date: 2016-06-15 22:44:25

hi,

% git-add -f foo/.git/bar
fatal: unable to add foo/.git/bar to index

How do i add such a file to a git repository?

thx && cu,
michael
-- 
It's already too late!

Re: [bug] git-add won't add foo/.git/bar

From: Julian Phillips <hidden>
Date: 2016-06-15 22:44:25

On Tue, 25 Mar 2008, Michael Gebetsroither wrote:
hi,

% git-add -f foo/.git/bar
fatal: unable to add foo/.git/bar to index
Well, git won't allow .git as a element anywhere in the path, when we 
should only care about the _first_ one - and also, if you use 
--git-dir=banana then we still check for '.git' ... oops.

patch in the works ... ;)
How do i add such a file to a git repository?
wait? :P

Sorry, can't see any easy way to work around this atm.
thx && cu,
michael
-- 
Julian

  ---
"May the forces of evil become confused on the way to your house."
-- George Carlin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help