Skip to content

Commit

Permalink
fix(git-check): fetch before pull
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin O'Donnell <kevin@blockchaintp.com>
  • Loading branch information
scealiontach committed Dec 15, 2021
1 parent 2385a7e commit 4d301e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bash/git-check
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ function pull_if_different {
local base_name
base_name=${1:?}
branch_name=${2:?}
git::cmd fetch origin
if git::cmd diff "remotes/origin/$branch_name" --quiet >/dev/null 2>&1; then
log::info "Examining $base_name: up to date"
else
Expand Down

0 comments on commit 4d301e4

Please sign in to comment.