Skip to content

Surf changes not to the correct Directory if a Configuration is not located directly in .surf Folder. #655

Description

@davidjakob

Expected Behavior

surf simulate release/my-new-release
should work like
surf simulate my-new-release
if the configuration is located in .surf/release/my-new-release.php

Actual Behavior

surf simulate release/my-new-release
breaks, because directory is not switched correctly.

my-project.testserver.net (my-project.testserver.net) TYPO3\Surf\Task\Package\GitTask
(localhost): "git ls-remote file:///home/gitlab-runner/builds/GT9ITcjd/0/websites/my-project/.surf refs/heads/release/my-new-release | awk '{print $1 }'"
> fatal: '/home/gitlab-runner/builds/GT9ITcjd/0/websites/my-project/.surf' does not appear to be a git repository
> fatal: Could not read from remote repository.  Please make sure you have the correct access rights and the repository exists.
Got exception "Could not retrieve sha1 of git branch "release/my-new-release"" rolling back.

Specifications

  • Surf Version: 3.3.4
  • PHP Version: 8.0
  • Environment (CI): GitLab (Runner)
  • CI-Call from GitLab: surf simulate $CI_COMMIT_BRANCH
  • config file path: .surf/release/my-new-release.php

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions