help / Atom feed
* [PATCH] Fix broken VCS_Info in 5.7
@ 2019-01-26 20:42 dana
  0 siblings, 0 replies; 1+ messages in thread
From: dana @ 2019-01-26 20:42 UTC (permalink / raw)
  To: Zsh workers

A bunch of Arch users are reporting that VCS_Info is broken:


To replicate it you just need to run vcs_info outside of a repo:

  % zsh -f
  % autoload -Uz vcs_info
  % vcs_info
  VCS_INFO_detect_p4:79: maximum nested function level reached; increase FUNCNEST?

This is apparently due to workers/43618, which introduced a function-def guard
to a function that wants to redefine itself. Just taking that back out seems
to fix it.

Wish they'd mentioned it to #zsh an hour or two ago :(


diff --git a/Functions/VCS_Info/Backends/VCS_INFO_detect_p4 b/Functions/VCS_Info/Backends/VCS_INFO_detect_p4
index d171c68ee..5ec21da9f 100644
--- a/Functions/VCS_Info/Backends/VCS_INFO_detect_p4
+++ b/Functions/VCS_Info/Backends/VCS_INFO_detect_p4
@@ -44,7 +44,6 @@ VCS_INFO_p4_get_server() {
-(( ${+functions[VCS_INFO_detect_p4]} )) ||
 VCS_INFO_detect_p4() {
   local serverport p4where

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

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-26 20:42 [PATCH] Fix broken VCS_Info in 5.7 dana


Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-workers

Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/ public-inbox