Re: Init on push

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <gitster@...>
Cc: Jakub Narebski <jnareb@...>, <git@...>
Date: Saturday, November 8, 2008 - 4:44 pm

Le Saturday 08 November 2008 21:38:10 Junio C Hamano, vous avez écrit :

I have missed the mkdir part, but then here this is mkdir _-p_...

I mean, what is the cost of mkdir -p the/dir and then git init -C the/dir? I 
don't think it's that good an idea to have git create the directory in this 
case...

Think of what would happen if you git -D a/b, and a is a symlink to, where, 
somewhere (doesn't exist, exists but if you touch it you're {in trouble,good 
for jail time, whatever}).

I personnaly think that the directory creation SHOULD be created to the 
commands that are meant for it, just as git handles dir creation in its own 
space (a git repository).

-- 
Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 6 83 87 78 75
Tel : +33 (0) 1 78 94 55 52
fge@one2team.com
40 avenue Raymond Poincaré
75116 Paris
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Init on push, Jakub Narebski, (Sat Nov 8, 4:06 pm)
Re: Init on push, Francis Galiegue, (Sat Nov 8, 4:08 pm)
Re: Init on push, Junio C Hamano, (Sat Nov 8, 4:38 pm)
Re: Init on push, Francis Galiegue, (Sat Nov 8, 4:44 pm)
Re: Init on push, Francis Galiegue, (Sat Nov 8, 4:50 pm)
Re: Init on push, Junio C Hamano, (Sat Nov 8, 8:13 pm)
Re: Init on push, Francis Galiegue, (Sat Nov 8, 9:41 pm)