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

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

Open
davidjakob opened this issue Jan 9, 2023 · 0 comments
Assignees
Labels

Comments

@davidjakob
Copy link

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
@simonschaufi simonschaufi self-assigned this Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants