All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] post-update.sample referenced obsolete binary "git-update-server-info"
@ 2009-07-17 15:36 Peter Simons
  2009-07-17 16:12 ` Michael J Gruber
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Simons @ 2009-07-17 15:36 UTC (permalink / raw)
  To: git


	Modified 
diff --git a/templates/hooks--post-update.sample b/templates/hooks--post-update.sample
index 5323b56..ec17ec1 100755
--- a/templates/hooks--post-update.sample
+++ b/templates/hooks--post-update.sample
@@ -5,4 +5,4 @@
 #
 # To enable this hook, rename this file to "post-update".
 
-exec git-update-server-info
+exec git update-server-info

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] post-update.sample referenced obsolete binary "git-update-server-info"
  2009-07-17 15:36 [PATCH] post-update.sample referenced obsolete binary "git-update-server-info" Peter Simons
@ 2009-07-17 16:12 ` Michael J Gruber
  2009-07-20 14:46   ` Peter Simons
  0 siblings, 1 reply; 5+ messages in thread
From: Michael J Gruber @ 2009-07-17 16:12 UTC (permalink / raw)
  To: Peter Simons; +Cc: git

Peter Simons venit, vidit, dixit 17.07.2009 17:36:
> 
> 	Modified 
> diff --git a/templates/hooks--post-update.sample b/templates/hooks--post-update.sample
> index 5323b56..ec17ec1 100755
> --- a/templates/hooks--post-update.sample
> +++ b/templates/hooks--post-update.sample
> @@ -5,4 +5,4 @@
>  #
>  # To enable this hook, rename this file to "post-update".
>  
> -exec git-update-server-info
> +exec git update-server-info
> 

Have you actually tried? t/t5540-http-push.sh should fail if this really
needed a fix (libexec is in $PATH for hooks).

Michael

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] post-update.sample referenced obsolete binary "git-update-server-info"
  2009-07-17 16:12 ` Michael J Gruber
@ 2009-07-20 14:46   ` Peter Simons
  2009-07-21  8:01     ` Michael J Gruber
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Simons @ 2009-07-20 14:46 UTC (permalink / raw)
  To: git

Hi Michael,

 >> -exec git-update-server-info
 >> +exec git update-server-info
 >>
 >
 > t/t5540-http-push.sh should fail if this really needed a fix (libexec
 > is in $PATH for hooks).

you are right, the call to git-update-server-info does succeed, so there
is no need to make that change.

Personally, I find it unfortunate, though, that those scripts rely on
commands that won't exist when a normal user runs them.

Just my 2 cents,
Peter

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] post-update.sample referenced obsolete binary "git-update-server-info"
  2009-07-20 14:46   ` Peter Simons
@ 2009-07-21  8:01     ` Michael J Gruber
  2009-07-21 20:02       ` Peter Simons
  0 siblings, 1 reply; 5+ messages in thread
From: Michael J Gruber @ 2009-07-21  8:01 UTC (permalink / raw)
  To: Peter Simons; +Cc: git

Peter Simons venit, vidit, dixit 20.07.2009 16:46:
> Hi Michael,
> 
>  >> -exec git-update-server-info
>  >> +exec git update-server-info
>  >>
>  >
>  > t/t5540-http-push.sh should fail if this really needed a fix (libexec
>  > is in $PATH for hooks).
> 
> you are right, the call to git-update-server-info does succeed, so there
> is no need to make that change.
> 
> Personally, I find it unfortunate, though, that those scripts rely on
> commands that won't exist when a normal user runs them.
> 
> Just my 2 cents,
> Peter
> 

Anyone can run them, just not from the default $PATH.

In fact, calling the dashed versions from the hooks is both safer and
(marginally) more efficient: Many people have several versions of git
lying around, and we've had more than one "bug" report where people
messed up because of mixing git bits from several versions. Calling the
dashed form above relies on the environment as set up by the caller, not
the user (who may have several "git" in $PATH, but not
"git-update-server-info"). Also, the command is called directly rather
than indirectly with "git" having to look for it.

Michael

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] post-update.sample referenced obsolete binary "git-update-server-info"
  2009-07-21  8:01     ` Michael J Gruber
@ 2009-07-21 20:02       ` Peter Simons
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Simons @ 2009-07-21 20:02 UTC (permalink / raw)
  To: git

Hi Michael,

 > Calling the dashed versions [is safer]: Many people have several
 > versions of git lying around, and we've had more than one "bug"
 > report where people messed up because of mixing git bits from several
 > versions.

right, this is a good point. Thank you for sharing this insight.

Take care,
Peter

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-07-21 20:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-17 15:36 [PATCH] post-update.sample referenced obsolete binary "git-update-server-info" Peter Simons
2009-07-17 16:12 ` Michael J Gruber
2009-07-20 14:46   ` Peter Simons
2009-07-21  8:01     ` Michael J Gruber
2009-07-21 20:02       ` Peter Simons

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.