Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: cannot spawn git: Filename too long #9

Open
andry81 opened this issue Jan 6, 2023 · 0 comments
Open

error: cannot spawn git: Filename too long #9

andry81 opened this issue Jan 6, 2023 · 0 comments

Comments

@andry81
Copy link

andry81 commented Jan 6, 2023

Details is here: #7

The issue is that the git status, git commit and all other commands falls into recursion reading recursed submodules:

...\tacklelib>gil pull
Working path: ...\tacklelib
Discover git links: ...\tacklelib\.gitlinks
Discover git links: ...\tacklelib\_externals\contools\.gitlinks
Discover git links: ...\tacklelib\_externals\contools\_externals\svncmd\.gitlinks
Discover git links: ...\tacklelib\_externals\contools\_externals\tacklelib\.gitlinks
Running: git pull in ...\tacklelib
Already up to date.
Running: git checkout branch "master" in ...\tacklelib\_externals\contools
error: cannot spawn git: Filename too long
fatal: Could not run 'git status --porcelain=2' in submodule _externals/contools
fatal: 'git status --porcelain=2' failed in submodule _externals/svncmd
fatal: 'git status --porcelain=2' failed in submodule _externals/contools
fatal: 'git status --porcelain=2' failed in submodule _externals/svncmd
fatal: 'git status --porcelain=2' failed in submodule _externals/contools
 ...
fatal: 'git status --porcelain=2' failed in submodule _externals/contools
fatal: 'git status --porcelain=2' failed in submodule _externals/svncmd
fatal: 'git status --porcelain=2' failed in submodule _externals/contools
fatal: 'git status --porcelain=2' failed in submodule _externals/svncmd
Traceback (most recent call last):
  File "C:\Python\x64\310\Scripts\gil.py", line 419, in <module>
    sys.exit(main())
  File "C:\Python\x64\310\Scripts\gil.py", line 411, in main
    context.command(sys.argv[1], sys.argv[2:])
  File "C:\Python\x64\310\Scripts\gil.py", line 261, in command
    self.git_checkout(record.path, record.branch)
  File "C:\Python\x64\310\Scripts\gil.py", line 328, in git_checkout
    raise Exception("Failed to run git checkout branch \"%s\" in %s" % (branch, path))
Exception: Failed to run git checkout branch "master" in ...\tacklelib\_externals\contools

So the recursion problem is not actually resolved as stated in the readme. Or this is not the recursion and something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant