Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
radhermit committed Nov 29, 2024
1 parent bb79946 commit 437f41b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgcruft-action
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ set +e
# determine old commit for diff targeting
if [[ -n ${GIT_BASE_BRANCH} ]]; then
# pull request
OLD_COMMIT=$(git rev-parse ${GIT_BASE_BRANCH})
OLD_COMMIT=$(git rev-parse origin/${GIT_BASE_BRANCH})
elif [[ ${GIT_BRANCH} != ${GIT_DEFAULT_BRANCH} ]]; then
# non-default branch
OLD_COMMIT=$(git rev-parse ${GIT_DEFAULT_BRANCH})
OLD_COMMIT=$(git rev-parse origin/${GIT_DEFAULT_BRANCH})
else
OLD_COMMIT=$(git rev-parse HEAD~1)
fi
Expand Down

0 comments on commit 437f41b

Please sign in to comment.