You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to setup Conan packaging with the target source in a git submodule relative to the recipe, I was receiving
empty commit ids. Upon further investigation, it seems that the current assumption is that the folder path to Git()
will be absolute. A minor adjustment allows relative paths to be used as well: since the git command always chdirs to the
target git folder, we can perform the rev-parse relative to the current directory and receive the expected behavior.
Note that the current default value of "." is a relative path, which suggests that other relative paths should work.
When trying to setup Conan packaging with the target source in a git submodule relative to the recipe, I was receiving
empty commit ids. Upon further investigation, it seems that the current assumption is that the folder path to
Git()
will be absolute. A minor adjustment allows relative paths to be used as well: since the git command always
chdir
s to thetarget git folder, we can perform the rev-parse relative to the current directory and receive the expected behavior.
Note that the current default value of "." is a relative path, which suggests that other relative paths should work.
The text was updated successfully, but these errors were encountered: