In subprocess module in python,
subprocess.Popen(
(
"git",
"add",
"-A",
"&&",
"git",
"commit",
"-m",
commit_message
),
cwd=path,
)
does not work. However if I split it into
subprocess.Popen(( "git", "add","-A") , cwd=path)
and
subprocess.Popen(( "git", "commit","-m" , "yeah") , cwd=path)
it works. How do I insert "&&" in the middle? Thanks.