update.sh: always fetch tags.

We use these for updating people who just follow tags.
This commit is contained in:
Mike McQuaid 2016-09-17 19:35:07 +01:00
parent 7a63a75360
commit d62512095f

View File

@ -480,10 +480,10 @@ EOS
if [[ -n "$HOMEBREW_UPDATE_PREINSTALL" ]]
then
git fetch --force "${QUIET_ARGS[@]}" origin \
git fetch --tags --force "${QUIET_ARGS[@]}" origin \
"refs/heads/$UPSTREAM_BRANCH_DIR:refs/remotes/origin/$UPSTREAM_BRANCH_DIR" 2>/dev/null
else
if ! git fetch --force "${QUIET_ARGS[@]}" origin \
if ! git fetch --tags --force "${QUIET_ARGS[@]}" origin \
"refs/heads/$UPSTREAM_BRANCH_DIR:refs/remotes/origin/$UPSTREAM_BRANCH_DIR"
then
echo "Fetching $DIR failed!" >>"$update_failed_file"