Skip to content

Deploying a branch while on another one #700

@jean-gui

Description

@jean-gui

Running the command LANG=C vendor/bin/dep deploy staging --branch=xxx while the local repository is on another branch doesn't seem to work and outputs this error:

task deploy:local_build
[staging] Removed previous build
[staging] Cloning repository (Branch: HEAD)
[staging]  error  in static.php on line 82:
[staging] run /usr/bin/git archive feature/update-logo | tar -x -f - -C /home/jean-gui/.deployer/w3c-website-templates-bundle 2>&1
[staging] err fatal: not a valid object name: feature/update-logo
[staging] tar: This does not look like a tar archive
[staging] tar: Exiting with failure status due to previous errors
[staging] exit code 2 (Misuse of shell builtins)
ERROR: Task deploy:local_build failed!
task deploy:failed

Switching the local branch to xxx before running the command does work.

Metadata

Metadata

Assignees

Type

Projects

Status

📋 To do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions