Skip to content

Commit

Permalink
Apply Mike's suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
maxim-belkin and MikeMcQuaid committed Apr 26, 2022
1 parent 27a2dba commit 13735bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Library/Homebrew/cmd/update-reset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ homebrew-update-reset() {
[[ -d "${DIR}/.git" ]] || continue
if ! git -C "${DIR}" config --local --get remote.origin.url &>/dev/null
then
opoo "No remote 'origin' in: ${DIR}"
opoo "No remote 'origin' in ${DIR}, skipping update and reset!"
continue
fi
ohai "Fetching ${DIR}..."
Expand Down
3 changes: 2 additions & 1 deletion Library/Homebrew/cmd/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -557,9 +557,10 @@ EOS

if ! git config --local --get remote.origin.url &>/dev/null
then
opoo "No remote 'origin' in: ${DIR}"
opoo "No remote 'origin' in ${DIR}, skipping update!"
continue
fi

if [[ -n "${HOMEBREW_VERBOSE}" ]]
then
echo "Checking if we need to fetch ${DIR}..."
Expand Down

0 comments on commit 13735bc

Please sign in to comment.