git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] svnrdump_sim: start the script with /usr/bin/env python

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 28, 2012, 07:36 UTC
Message-ID
<7vy5hmgovt.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20121128025734.21231.47468.chriscool@tuxfamily.org>
Christian Couder <chriscool@tuxfamily.org> writes:
> All the python scripts except contrib/svn-fe/svnrdump_sim.py
> start with "#!/usr/bin/env python".
>
> This patch fix contrib/svn-fe/svnrdump_sim.py to do the same.
I suspect you need a bit more than that.
    $ make git-p4
    $ diff -u git-p4.py git-p4

shows you how we tell the scripts how to find their interpreters (that way, there is no need to rely on the existence of /usr/bin/env).

Show 16 quoted lines
>
> Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
> ---
>  contrib/svn-fe/svnrdump_sim.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/contrib/svn-fe/svnrdump_sim.py b/contrib/svn-fe/svnrdump_sim.py
> index 1cfac4a..d219180 100755
> --- a/contrib/svn-fe/svnrdump_sim.py
> +++ b/contrib/svn-fe/svnrdump_sim.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/python
> +#!/usr/bin/env python
>  """
>  Simulates svnrdump by replaying an existing dump from a file, taking care
>  of the specified revision range.
Previous: Christian CouderNext: Felipe Contreras
Message 2 of 8 in “svnrdump_sim: start the script with /usr/bin/env python”
  1. svnrdump_sim: start the script with /usr/bin/env pythonChristian Couder, Nov 28, 2012
  2. Junio C HamanoNov 28, 2012
  3. Felipe ContrerasNov 28, 2012
  4. Christian CouderNov 28, 2012
  5. Junio C HamanoNov 28, 2012
  6. Felipe ContrerasNov 28, 2012
  7. Junio C HamanoNov 28, 2012
  8. Felipe ContrerasNov 28, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.