You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to clean my submodules using the command repo.git.submodule('foreach', 'git', 'clean', '-xfd'). When executing this getting the below stack trace.
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\git\cmd.py", line 466, in <lambda>
return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
File "C:\Python27\lib\site-packages\git\cmd.py", line 910, in _call_process
return self.execute(make_call(), **_kwargs)
File "C:\Python27\lib\site-packages\git\cmd.py", line 718, in execute
raise GitCommandError(command, status, stderr_value)
git.exc.GitCommandError: 'git submodule foreach git clean -xfd' returned with ex
it code 1
stderr: 'C:\Program Files\Git\mingw64/libexec/git-core\git-submodule: line 311:
0: Bad file descriptor'
Getting the same error for the below commands too,
With Windows, I believe there are all kinds of possible issues related to file-descriptors, and unfortunately I have no means to reproduce it.
However, if someone else runs into this reproduceably, maybe they can help fixing it.
OS: Windows 64 bit
gitpython: 2.0.8
git: 2.10.0
I'm trying to clean my submodules using the command
repo.git.submodule('foreach', 'git', 'clean', '-xfd')
. When executing this getting the below stack trace.Getting the same error for the below commands too,
But the below commands are getting succeeded in gitpython
Whereas trying to execute
git submodule foreach git clean -xfd
in windows command prompt or git bash it succeeds without any error.The text was updated successfully, but these errors were encountered: