Reconstruct Popen call and add commit sha as param