@@ -616,7 +616,7 @@ def pull(self, curr_fb_path, auth=None):
616
616
if (auth ):
617
617
env ["GIT_TERMINAL_PROMPT" ] = "1"
618
618
p = git_auth_input_wrapper (
619
- command = 'git pull --no-commit' ,
619
+ command = [ 'git' , ' pull' , ' --no-commit'] ,
620
620
cwd = os .path .join (self .root_dir , curr_fb_path ),
621
621
env = env ,
622
622
username = auth ['username' ],
@@ -626,11 +626,12 @@ def pull(self, curr_fb_path, auth=None):
626
626
else :
627
627
env ["GIT_TERMINAL_PROMPT" ] = "0"
628
628
p = subprocess .Popen (
629
- ['git pull --no-commit' ],
629
+ ['git' , ' pull' , ' --no-commit' ],
630
630
stdout = PIPE ,
631
631
stderr = PIPE ,
632
632
env = env ,
633
633
cwd = os .path .join (self .root_dir , curr_fb_path ),
634
+ env = env ,
634
635
)
635
636
_ , error = p .communicate ()
636
637
@@ -649,7 +650,7 @@ def push(self, remote, branch, curr_fb_path, auth=None):
649
650
if (auth ):
650
651
env ["GIT_TERMINAL_PROMPT" ] = "1"
651
652
p = git_auth_input_wrapper (
652
- command = 'git push {} {}' . format ( remote , branch ) ,
653
+ command = [ 'git' , ' push' , remote , branch ] ,
653
654
cwd = os .path .join (self .root_dir , curr_fb_path ),
654
655
env = env ,
655
656
username = auth ['username' ],
@@ -659,11 +660,12 @@ def push(self, remote, branch, curr_fb_path, auth=None):
659
660
else :
660
661
env ["GIT_TERMINAL_PROMPT" ] = "0"
661
662
p = subprocess .Popen (
662
- ['git push {} {}' . format ( remote , branch ) ],
663
+ ['git' , ' push' , remote , branch ],
663
664
stdout = PIPE ,
664
665
stderr = PIPE ,
665
666
env = env ,
666
667
cwd = os .path .join (self .root_dir , curr_fb_path ),
668
+ env = env ,
667
669
)
668
670
_ , error = p .communicate ()
669
671
0 commit comments