Skip to content

Commit

Permalink
🐛 fix upgrading submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
dudeofawesome committed Jan 30, 2024
1 parent 96a5f2b commit f142ff0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion scripts/create-cybersource-sdk-patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ source "$(dirname "$0")/lib/check-latest-release.sh"
source "$(dirname "$0")/lib/submodule.sh"

function main() {
check_latest_release "CyberSource/cybersource-rest-client-node" "$cybersource_rest_client_version"

update_submodule \
"$cybersource_rest_client_version" \
Expand Down
1 change: 0 additions & 1 deletion scripts/create-template-patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ source "$(dirname "$0")/lib/check-latest-release.sh"
source "$(dirname "$0")/lib/submodule.sh"

function main() {
check_latest_release "swagger-api/swagger-codegen-generators" "$swagger_codegen_templates_version"

update_submodule \
"$swagger_codegen_templates_version" \
Expand Down
1 change: 1 addition & 0 deletions scripts/lib/submodule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function update_submodule() {

# update submodule
git submodule update --init "$submodule_dir" > /dev/null
git -C "$submodule_dir" fetch 2> /dev/null
git -C "$submodule_dir" checkout "$version_tag" 2> /dev/null
}

Expand Down

0 comments on commit f142ff0

Please sign in to comment.