Skip to content

Commit

Permalink
解决了origin/develop: behind 2写法下的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
13601313270 committed Apr 23, 2017
1 parent 4bb8522 commit c91d690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion githubAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function branchClean(){
if(substr($branch,0,1)=='*'){
if(preg_match('/\* (\S+) (\S+) \[(\S+)\] (\S+)/',$branch,$match)){
$orignBranch = $match[3];
return $this->exec('git checkout .;git reset --hard '.$orignBranch);
return $this->exec('git checkout .;git reset --hard '.current(explode(':',$orignBranch)));
}

}
Expand Down

0 comments on commit c91d690

Please sign in to comment.