Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shenghuang147 opened this issue Aug 8, 2023 · 0 comments

Comments

@shenghuang147
Copy link

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>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant