@@ -137,35 +137,35 @@ sub fetchInput {
137137 my $res ;
138138 if (! -d $clonePath ) {
139139 # Clone everything and fetch the branch.
140- $res = run (cmd => [" git" , " init" , $clonePath ]);
141- $res = run (cmd => [" git" , " remote" , " add" , " origin" , " --" , $uri ], dir => $clonePath ) unless $res -> {status };
140+ $res = runCommand (cmd => [" git" , " init" , $clonePath ]);
141+ $res = runCommand (cmd => [" git" , " remote" , " add" , " origin" , " --" , $uri ], dir => $clonePath ) unless $res -> {status };
142142 die " error creating git repo in `$clonePath ':\n $res ->{stderr}" if $res -> {status };
143143 }
144144
145145 # This command forces the update of the local branch to be in the same as
146146 # the remote branch for whatever the repository state is. This command mirrors
147147 # only one branch of the remote repository.
148148 my $localBranch = _isHash($branch ) ? " _hydra_tmp" : $branch ;
149- $res = run (cmd => [" git" , " fetch" , " -fu" , " origin" , " +$branch :$localBranch " ], dir => $clonePath ,
149+ $res = runCommand (cmd => [" git" , " fetch" , " -fu" , " origin" , " +$branch :$localBranch " ], dir => $clonePath ,
150150 timeout => $cfg -> {timeout });
151- $res = run (cmd => [" git" , " fetch" , " -fu" , " origin" ], dir => $clonePath , timeout => $cfg -> {timeout }) if $res -> {status };
151+ $res = runCommand (cmd => [" git" , " fetch" , " -fu" , " origin" ], dir => $clonePath , timeout => $cfg -> {timeout }) if $res -> {status };
152152 die " error fetching latest change from git repo at `$uri ':\n $res ->{stderr}" if $res -> {status };
153153
154154 # If deepClone is defined, then we look at the content of the repository
155155 # to determine if this is a top-git branch.
156156 if (defined $deepClone ) {
157157
158158 # Is the target branch a topgit branch?
159- $res = run (cmd => [" git" , " ls-tree" , " -r" , " $branch " , " .topgit" ], dir => $clonePath );
159+ $res = runCommand (cmd => [" git" , " ls-tree" , " -r" , " $branch " , " .topgit" ], dir => $clonePath );
160160
161161 if ($res -> {stdout } ne " " ) {
162162 # Checkout the branch to look at its content.
163- $res = run (cmd => [" git" , " checkout" , " --force" , " $branch " ], dir => $clonePath );
163+ $res = runCommand (cmd => [" git" , " checkout" , " --force" , " $branch " ], dir => $clonePath );
164164 die " error checking out Git branch '$branch ' at `$uri ':\n $res ->{stderr}" if $res -> {status };
165165
166166 # This is a TopGit branch. Fetch all the topic branches so
167167 # that builders can run "tg patch" and similar.
168- $res = run (cmd => [" tg" , " remote" , " --populate" , " origin" ], dir => $clonePath , timeout => $cfg -> {timeout });
168+ $res = runCommand (cmd => [" tg" , " remote" , " --populate" , " origin" ], dir => $clonePath , timeout => $cfg -> {timeout });
169169 print STDERR " warning: `tg remote --populate origin' failed:\n $res ->{stderr}" if $res -> {status };
170170 }
171171 }
0 commit comments