FetchContent_Declare ignores GIT_TAG

FetchContent_Declare(
    Project
    GIT_REPOSITORY git@SERVER_ADDRESS:group/project.git
    GIT_TAG f0f0cce200188f4bab4cc30cba18615bef2420c0
    GIT_SHALLOW TRUE
)
FetchContent_MakeAvailable(Project)

I’ve also tried “GIT_TAG TAG_LABEL” and “GIT_TAG origin/TAG_LABEL”. The result is always the same:

...BUILD_DIR/_deps/project-src$ git status
On branch master
Your branch is up to date with 'origin/master'.

EDIT:
cmake version 3.22.1
OS: ubuntu 22.04

OK, I made a mistake. Sorry to bother you.

There is another FetchContent_Declare before that one and I didn’t realise that it also depends on that repository (so HEAD is already checked out). I thought that I’ve cleaned up all my projects and removed those kind of double references. But this is an old project and I obviously missed it.