From: Junio C Hamano Date: Sat, 16 Sep 2023 04:45:36 GMT Subject: Re: BUG: git-gui no longer executes hook scripts Message-ID: In-Reply-To: <454d8b7b-96df-ec8f-2285-e022de66c66c@gmail.com> Mark Levedahl writes: > I think a simpler fix is just to examine the number of path components > - more than one means a relative or absolute command (/foo splits into > two parts). The below works for me on Linux. That is clever, but I cannot convince myself that it is not too clever for its own sake. The "pathtype" thing Dscho used in his original is documented to be aware of things like "C:\path\name", but I didn't re-read the Tcl manual page too carefully to know what "file split" does for such pathname to be certain.