We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe32ed5 commit 3d34e59Copy full SHA for 3d34e59
scripts/build_als.sh
@@ -124,6 +124,12 @@ function pin_crates() {
124
git -C "subprojects/$crate" fetch origin
125
fi
126
git -C "subprojects/$crate" checkout "${commit:-${branch:-master}}"
127
+ if [ -z "$commit" ]; then
128
+ # If no specific commit was requested, a branch is used. The previous
129
+ # checkout command would simply switch to it but not update it from
130
+ # remote. So let's do that update.
131
+ git -C "subprojects/$crate" pull origin "${branch:-master}"
132
+ fi
133
cp -v "subprojects/$crate".toml "subprojects/$crate/alire.toml"
134
135
# Instead of calling `alr pin` for each crate, it's more efficient to
0 commit comments