login
Header Space

 
 

Re: [PATCH 04/10] Migrate git-clone to use git-rev-parse --parseopt

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Nicolas Pitre <nico@...>
Cc: Pierre Habouzit <madcoder@...>, <git@...>
Date: Tuesday, November 6, 2007 - 3:39 pm

Nicolas Pitre <nico@cam.org> writes:


We do, but RUN_SETUP will happily go up to find the .git/ next
to t/ directory that is the parent of trash/ directory, in which
the tests run, without reporting errors.  As parseopt does not
depend on anything in git, this will not do any harm other than
falsely succeeding the test that should not pass.

We could probably introduce an environment variable, GIT_CEILING,
that tells the setup_git_directory_gentry() never go up beyond
that point, and set it to the t/trash directory while running
the test.

Something like that may have other uses in practice.  Often
people wonder what would happen if there is /.git repository and
they would want to make sure they would not accidentally add to
the repository controlled by /.git when they have bunch of other
repositories /some/where/.git in which they usually work.

-
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:
ph/parseopt-sh reloaded, Pierre Habouzit, (Sun Nov 4, 6:30 am)
Re: [PATCH 04/10] Migrate git-clone to use git-rev-parse --p..., Junio C Hamano, (Tue Nov 6, 3:39 pm)
speck-geostationary