diff options
| author | Mike McQuaid | 2016-09-17 19:35:07 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-09-20 17:16:47 +0100 |
| commit | d62512095ff4d82c7337682de77cffe9fe5da2f2 (patch) | |
| tree | 5b2278b590071867777b241d04015546b1f4088e /Library/Homebrew/cmd | |
| parent | 7a63a753609558e14f20080dd7ab5f4fc6e3f985 (diff) | |
| download | brew-d62512095ff4d82c7337682de77cffe9fe5da2f2.tar.bz2 | |
update.sh: always fetch tags.
We use these for updating people who just follow tags.
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/update.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index b57691893..716c01599 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -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" |
