git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* BUG: git-gui no longer executes hook scripts
@ 2023-09-15 16:45 Mark Levedahl
  2023-09-15 17:00 ` Junio C Hamano
  0 siblings, 1 reply; 25+ messages in thread
From: Mark Levedahl @ 2023-09-15 16:45 UTC (permalink / raw)
  To: git, johannes.schindelin, me


The commit titled "Work around Tcl's default |PATH| lookup",|aae9560, 
adds checking on all commands to be executed to assure these are on the 
PATH. Any script in .git/hooks is rejected as .git/hooks is not (in 
general) on the PATH, even if the entry in .git/hooks is a symlink to a 
file on the PATH. Instead, git-gui throws and error without completing 
the operation. This is easily demonstrated by say, enabling the 
commit-msg script (hooks-commit-msg.sample templates) and attempting a 
commit.
|

|I don't have a suggested solution to this: reverting the above commit 
will fix this problem, but that commit  was made to mitigate a security 
issue.  Perhaps anything in .git/hooks should be accepted without 
further checks?
|

|
|

|Mark
|


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

end of thread, other threads:[~2023-09-20 16:58 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-15 16:45 BUG: git-gui no longer executes hook scripts Mark Levedahl
2023-09-15 17:00 ` Junio C Hamano
2023-09-15 17:15   ` Junio C Hamano
2023-09-15 23:33     ` Mark Levedahl
2023-09-16  0:35       ` [PATCH] git-gui - re-enable use of " Mark Levedahl
2023-09-16 17:28         ` Junio C Hamano
2023-09-16 21:01           ` [PATCH v2] " Mark Levedahl
2023-09-16 21:51             ` Junio C Hamano
2023-09-17 19:22               ` Mark Levedahl
2023-09-17 19:24                 ` [PATCH] git-gui - use git-hook, honor core.hooksPath Mark Levedahl
2023-09-18 15:27                   ` Johannes Schindelin
2023-09-18 15:58                     ` Junio C Hamano
2023-09-18 16:25                       ` Mark Levedahl
2023-09-18 17:53                         ` Junio C Hamano
2023-09-20 13:05                   ` Pratyush Yadav
2023-09-20 15:30                     ` Mark Levedahl
2023-09-20 16:58                       ` Junio C Hamano
2023-09-20 15:49                     ` Junio C Hamano
2023-09-18 15:26             ` [PATCH v2] git-gui - re-enable use of hook scripts Johannes Schindelin
2023-09-18 16:04               ` Junio C Hamano
2023-09-20 13:27             ` Pratyush Yadav
2023-09-16  4:45       ` BUG: git-gui no longer executes " Junio C Hamano
2023-09-16 12:56         ` Mark Levedahl
2023-09-16 14:49           ` Mark Levedahl
2023-09-16 17:31             ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).