Re: [PATCH] Fix relative built-in paths to be relative to the command invocation

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Johannes Schindelin <Johannes.Schindelin@...>
Cc: Junio C Hamano <gitster@...>, Steffen Prohaska <prohaska@...>, <git@...>
Date: Monday, July 14, 2008 - 2:55 am

Zitat von Johannes Schindelin <Johannes.Schindelin@gmx.de>:


I could just have changed $(gitexecdir) to $(bindir), but in the
make-execpath-relative patch we will need the normalized gitexec_instdir
because its value is compared to $(bindir). So the extra $(shell...) in
_this_ patch is only that the final result looks consistent.


This is just to play a safe game. I had it that way, but I decided to have
the call to the new git_set_argv0_path() early in git.c because the call
to setup_path() in git.c is very late, and it could happen that we call
system_path() (which needs argv0_path) before that. Although I didn't audit
the code whether this really happens.

-- Hannes


--
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: [PATCH] Fix relative built-in paths to be relative to th..., Johannes Schindelin, (Sun Jul 13, 4:43 pm)
[PATCH 2/5] Record the command invocation path early, Johannes Sixt, (Mon Jul 14, 5:41 pm)
Re: [PATCH] Fix relative built-in paths to be relative to th..., Johannes Sixt, (Mon Jul 14, 2:55 am)
Re: [PATCH] Fix relative built-in paths to be relative to th..., Johannes Schindelin, (Mon Jul 14, 8:20 am)
Re: [PATCH] Allow the built-in exec path to be relative to t..., Johannes Schindelin, (Sun Jul 13, 4:45 pm)