Skip to content

[Bug]: git returned error "the receiving end does not support push options" when creating an environment #323

@ghost

Description

What happened?

Following container-use quickstart steps precisely, when agent tries to create an environment, git command returns an error:

Container-Use_environment_create /Users/flabatut/Documents/hello (explanation=Creating a development environment to build a Flask hello-world application...

failed to create environment: git command failed (exit code 128): exit status 128
Output: fatal: the receiving end does not support push options
fatal: the remote end hung up unexpectedly

Version

- container-use version 0.4.2
commit: 89ebe7765ec067a07c51de104822056eb217c1b9
built: 2025-08-19T22:23:38Z

- git version 2.51.1

Logs

FWIW, running `git config receive.advertisePushOptions true` in the local bare repository fixes the issue:


Container-Use_environment_create /Users/flabatut/Documents/hello (explanation=Creating a development environment for the Flask hello world application, t...

{"id":"clean-krill","title":"Flask Hello World App","config":{"workdir":"/workdir","base_image":"ubuntu:24.04"},"remote_ref":"container-use/clean-
krill","checkout_command_to_share_with_user":"container-use checkout clean-krill","log_command_to_share_with_user":"container-use log clean-krill","diff_command_to_share_with_user":"container-use
diff clean-krill"}


Prior the config update:

git config --local --list
core.repositoryformatversion=0
core.filemode=true
core.bare=true
core.ignorecase=true

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions