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
g = git.Git('./git')
// Make some changes to package.json
g.execute("git", "add", "package.json")
Throws error:
g.execute("git", "add", "package.json")
File "/Users/irmantas/projects/app/venv/lib/python3.7/site-packages/git/cmd.py", line 741, in execute
**subprocess_kwargs
File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 753, in __init__
errread, errwrite) = self._get_handles(stdin, stdout, stderr)
File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 1376, in _get_handles
p2cread = stdin.fileno()
AttributeError: 'str' object has no attribute 'fileno'
Activity
Byron commentedon Feb 8, 2020
I thinks this is what you are looking for.