Skip to content

Commit 5a7f43d

Browse files
committed
Fix creation of new branch
Signed-off-by: vinayb21 <vinay@hackerrank.com>
1 parent 1f36fa2 commit 5a7f43d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ echo "Cloning destination git repository"
2525
git config --global user.email "$USER_EMAIL"
2626
git config --global user.name "$DESTINATION_GITHUB_USERNAME"
2727
git clone "https://$API_TOKEN_GITHUB@github.com/$DESTINATION_REPOSITORY_USERNAME/$DESTINATION_REPOSITORY_NAME.git" "$CLONE_DIR"
28-
git checkout "$TARGET_BRANCH"
28+
git checkout -b "$TARGET_BRANCH"
2929
ls -la "$CLONE_DIR"
3030

3131
TARGET_DIR=$(mktemp -d)

0 commit comments

Comments
 (0)