Skip to content

Push: git-subrepo: Command failed: .... fatal: Not a valid object name: ''. #503

@bbros-dev

Description

@bbros-dev

I'm not sure where to begin debugging this....
please let me know if you require additional output

$ git subrepo --version
0.4.1

The command:

$ git subrepo push packer/cookbooks/kfchub -vd
>>> git rev-parse --verify HEAD
* Assert that working copy is clean: /home/<redacted>/src/kfchub.tf
* Check for worktree with branch subrepo/packer/cookbooks/kfchub
  * Fetch the upstream: https://github.com/bbros-dev/kfchub.chef.git (main).
>>> git fetch --no-tags --quiet https://github.com/bbros-dev/kfchub.chef.git main
  * Get the upstream subrepo HEAD commit.
>>> git rev-parse FETCH_HEAD^0
  * Create ref 'refs/subrepo/packer/cookbooks/kfchub/fetch'.
>>> git update-ref refs/subrepo/packer/cookbooks/kfchub/fetch dac0eec36208043a74dacdfa84031bea1270a949
* Check upstream head against .gitrepo commit.
* Deleting old 'subrepo/packer/cookbooks/kfchub' branch.
* Remove worktree:
>>> git branch -D subrepo/packer/cookbooks/kfchub
* Create subrepo branch 'subrepo/packer/cookbooks/kfchub'.
  * Check if the 'subrepo/packer/cookbooks/kfchub' branch already exists.
  * Subrepo parent: 3b93996006b726904247b9b39c98f42c01110cc3
  * Create new commits with parents into the subrepo fetch
>>> git rev-list --reverse --ancestry-path --topo-order 3b93996006b726904247b9b39c98f42c01110cc3..HEAD
  * Create branch 'subrepo/packer/cookbooks/kfchub' for this new commit set .
>>> git branch subrepo/packer/cookbooks/kfchub
git-subrepo: Command failed: 'git branch subrepo/packer/cookbooks/kfchub '.
fatal: Not a valid object name: ''.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions