Skip to content

Commit

Permalink
Use "cd" inline for commands that need it.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpugh committed Sep 17, 2024
1 parent 3b6cbec commit e1dfc55
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@
* label = @Translation("Git Checkout"),
* description = @Translation("Clone a git repository and checkout the desired git reference."),
* command = {
* "git clone [git_remote] [git_root]",
* "cd [git_root]",
* "git fetch",
* "git checkout [git_reference]",
* "git clone [git_remote] [git_root] || echo 'Clone already exists.'",
* "cd [git_root] && git fetch && git checkout [git_reference]",
* }
* )
*/
Expand Down

0 comments on commit e1dfc55

Please sign in to comment.