Skip to content

Commit

Permalink
Merge pull request #401 from perftool-incubator/dev-kmr
Browse files Browse the repository at this point in the history
force the git-fetch calls to always get the latest repo status
  • Loading branch information
k-rister authored Sep 24, 2024
2 parents 6c01791 + b484229 commit c52363c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/_git-fetch
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ touch "${PROCESS_LOCK_FILE}"

if pushd ${repo_dir} > /dev/null; then
if [ -d "./.git" ]; then
git_fetch_cmd="git fetch --all --prune --prune-tags --tags --verbose"
git_fetch_cmd="git fetch --all --prune --prune-tags --tags --verbose --force"
echo "${git_fetch_cmd}"
${git_fetch_cmd}

Expand Down
2 changes: 1 addition & 1 deletion bin/_update-git
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ if [ -d "./.git" ]; then
fi

# fetch updates from remote(s)
git_fetch_cmd="git fetch --all --prune --prune-tags --tags --verbose"
git_fetch_cmd="git fetch --all --prune --prune-tags --tags --verbose --force"
echo "${git_fetch_cmd}"
if ! ${git_fetch_cmd} 2>&1; then
echo "ERROR: could not git-fetch"
Expand Down

0 comments on commit c52363c

Please sign in to comment.