mirror of
https://gitea.com/actions/dorny-paths-filter.git
synced 2025-12-16 05:17:18 +00:00
Do not try to update head of current branch
This commit is contained in:
@@ -69,7 +69,7 @@ export async function getChangesSinceMergeBase(
|
||||
let lastCommitCount = await getCommitCount()
|
||||
let depth = Math.max(lastCommitCount * 2, initialFetchDepth)
|
||||
while (!(await hasMergeBase())) {
|
||||
await exec('git', ['fetch', `--depth=${depth}`, 'origin', `${baseRef}:${baseRef}`, `${ref}:${ref}`])
|
||||
await exec('git', ['fetch', `--depth=${depth}`, 'origin', `${baseRef}:${baseRef}`, `${ref}`])
|
||||
const commitCount = await getCommitCount()
|
||||
if (commitCount === lastCommitCount) {
|
||||
core.info('No more commits were fetched')
|
||||
|
||||
Reference in New Issue
Block a user