public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
* bug report: mutual recursion in the git-subtree shell script
@ 2021-03-13 16:06 Arun Sharma
  2021-03-13 17:02 ` brian m. carlson
  0 siblings, 1 reply; 5+ messages in thread
From: Arun Sharma @ 2021-03-13 16:06 UTC (permalink / raw)
  To: git

[ resending bug report from git-users since there weren't any responses ]

So I'm trying to split out a directory from postgres source code
(which has 52k commits). I was able to split a directory into a
separate subtree (with 1685 commits). All good so far.

Now I do a pull from upstream and want to push the directory to my
subtree. The command fails with:

$ git subtree push --prefix=src/interfaces/libpq libpq master
/usr/lib/git-core/git-subtree: 647: Maximum function recursion depth
(1000) reached

As far as I can see, it seems to be a mutual recursion between

process_split_commit() and check_parents()

If this diagnosis is correct, are there any known workarounds? I've
tried increasing ulimit -s and FUNCNEST=10000, but it didn't fix the
problem.

Can this flow be coded without using recursion? Are there
implementations of git-subtree in another language which doesn't have
this problem?

 -Arun

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

end of thread, other threads:[~2026-03-14 21:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-13 16:06 bug report: mutual recursion in the git-subtree shell script Arun Sharma
2021-03-13 17:02 ` brian m. carlson
2021-03-14 17:31   ` Arun Sharma
2021-03-15  5:19     ` Johannes Schindelin
2026-03-14 21:36     ` Colin Stagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox