im currently working on a program, which should control a git repository through pexpect.
Simple commands like git status
are working, but commands like git diff --name-status ...
don't. I get the following error message: WARNING: terminal is not fully functional
.
All the solutions i've found, were to fix the problem on Windows or Mac.
Heres a codesnippet from my program:
my_bash = pexpect.spawn('/bin/bash', cwd="/home/xxx/clone_repo/local.repo/")
my_bash.logfile = sys.stdout
my_bash.sendline(git diff --name-status branch1 branch2)
Does someone know a solution to this problem? Can i run pexpect with a more functional terminal for example?
greetings Johnny