Skip to content

project top level has a directory with the same name as the branch, the pull will fail. #480

@shenghuang147

Description

@shenghuang147

my obs-service-obs_scm version: 0.10.30

obs_scm If the project top level has a directory with the same name as the branch, the pull will fail.

Here's my _service.

<services>
  <service name="obs_scm">
    <param name="scm">git</param>
    <param name="url">https://github.com/XTLS/Xray-core.git</param>
    <param name="revision">main</param>
    <param name="versionformat">@PARENT_TAG@+git.%h</param>
    <param name="versionrewrite-pattern">v(. *)</param>
    <param name="changesgenerate">disable</param>
  </service
  <service mode="buildtime" name="tar" />
  <service mode="buildtime" name="recompress">
    <param name="file">*.tar</param
    <param name="compression">gz</param>
  </service
  <service mode="buildtime" name="set_version" />
</services

For example, the project Xray-core contains a main directory with the same name as the branch.

image-20230808163256497

I forked the project and renamed the main directory and it pulled up fine.

image-20230808164737322

Currently I can only pull using <param name="revision">origin/main</param>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions