'Conflicting revision error when sourcing from multiple git repositories in yocto

I want to fetch from two git repositories in yocto, but I get an "conflicting revisions error. The code I use is like this:

SRC_URI_append = " git:///home/project1/source/;protocol=file;rev=< REV1 >"
SRC_URI_append = " git:///home/project2/source/;protocol=file;rev=< REV2 >"


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source