Class GitScmProviderRepository

    • Method Detail

      • getProvider

        public String getProvider()
        Returns:
        either 'git' or 'jgit' depending on the underlying implementation being used
      • getFetchUrl

        public String getFetchUrl()
        Returns:
        the URL used to fetch from the upstream repository
      • getPushUrl

        public String getPushUrl()
        Returns:
        the URL used to push to the upstream repository
      • getRelativePath

        public String getRelativePath​(ScmProviderRepository ancestor)
        Get the relative path between the repository provided as argument and the current repository.
        Overrides:
        getRelativePath in class ScmProviderRepository
        Parameters:
        ancestor - another repository that should be ancestor of this one
        Returns:
        the relative path or null if it can't be resolved