Skip to content

Commit fba3ba9

Browse files
Use explicit repo path for submodule checkout
1 parent eec9e91 commit fba3ba9

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

scripts/checkout-submodules.bash

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ if [ "$#" -gt 0 ]; then
77
fi
88

99
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
10-
cd "$repo_root"
1110

1211
if [ -n "${SWIFT_SUBMODULE_DEPLOY_KEY:-}" ]; then
1312
ssh_dir="$HOME/.ssh"
@@ -19,8 +18,8 @@ if [ -n "${SWIFT_SUBMODULE_DEPLOY_KEY:-}" ]; then
1918
chmod 600 "$key_file"
2019
ssh-keyscan github.com >> "$ssh_dir/known_hosts" 2>/dev/null
2120

22-
git config submodule.submodules/swift.url git@github.com:aspose-barcode-cloud/Aspose.BarCode-Cloud-SDK-for-Swift.git
21+
git -C "$repo_root" config --local submodule.submodules/swift.url git@github.com:aspose-barcode-cloud/Aspose.BarCode-Cloud-SDK-for-Swift.git
2322
export GIT_SSH_COMMAND="ssh -i $key_file -o IdentitiesOnly=yes -o UserKnownHostsFile=$ssh_dir/known_hosts"
2423
fi
2524

26-
git submodule update "${submodule_args[@]}"
25+
git -C "$repo_root" submodule update "${submodule_args[@]}"

0 commit comments

Comments
 (0)