Skip to content

Commit

Permalink
feat: specify branch to which checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
HiroIshida committed Dec 31, 2023
1 parent 13eacf7 commit 27e294d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def add_prefix(file_path: Path, prefix: str) -> Path:
"-mount", type=str, help="mount source launch file or directory"
)
parser.add_argument("-name", type=str, help="launch file name")
parser.add_argument("-remote", type=str, help="remote name of the repository to clone", default="origin")
parser.add_argument("-branch", type=str, help="checkout branch name", default="master")
parser.add_argument(
"-host", type=str, default="pr1040", help="host name or ip-address"
)
Expand Down Expand Up @@ -61,6 +63,8 @@ def add_prefix(file_path: Path, prefix: str) -> Path:
/bin/bash -i -c \
"source ~/.bashrc; \
roscd detic_ros; \
git fetch {remote}; \
git checkout {branch}; \
rossetip; rossetmaster {host}; \
roslaunch detic_ros {launch_file_name} {launch_args}"
""".format(
Expand Down

0 comments on commit 27e294d

Please sign in to comment.