storm_origin_info

storm_origin_info() → tuple[str | None, str | None, str]

Information about the source of Storm: the repo path, the repo tag and commit hash.

If Storm was already on the system during installation and this preexisting version was used, the repo path and repo tag are expected to be None. If Storm was installed (locally) as part of the installation process, these values are expected to be not None. Then:

  • The repo path usually takes the form of a url.

  • The tag refers to a tag on the repo (can also be ‘master’).

  • The hash corresponds to the latest git commit.

A noteworthy exception is when the fetch was from a local source dir. In that case, this source dir is included, and the tag reads __local-source-dir__.

Returns:

A tuple with the repo path, the repo tag and the commit hash.