|
@@ -39,6 +39,8 @@ else
|
|
fi
|
|
fi
|
|
|
|
|
|
ref=${ref:-HEAD}
|
|
ref=${ref:-HEAD}
|
|
|
|
+# Ensure that the ref revision has some history
|
|
|
|
+git fetch -q "--depth=${FETCH_DEPTH:-50}" origin "+${ref}"
|
|
src_sha=$(git rev-parse -q --verify "${ref}") || die "fatal: couldn't find ref ${ref}"
|
|
src_sha=$(git rev-parse -q --verify "${ref}") || die "fatal: couldn't find ref ${ref}"
|
|
echo "Checking $(git rev-list --count "${src_sha}" "^${target_sha}") commits since revision ${target_sha}"
|
|
echo "Checking $(git rev-list --count "${src_sha}" "^${target_sha}") commits since revision ${target_sha}"
|
|
for commit in $(git rev-list --reverse "${src_sha}" "^${target_sha}"); do
|
|
for commit in $(git rev-list --reverse "${src_sha}" "^${target_sha}"); do
|