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

Can't commit: ... doesn't contain upstream HEAD #562

Open
friscote opened this issue Jun 8, 2022 · 1 comment
Open

Can't commit: ... doesn't contain upstream HEAD #562

friscote opened this issue Jun 8, 2022 · 1 comment

Comments

@friscote
Copy link

friscote commented Jun 8, 2022

Can someone please help resolving the issue with 'Can't commit: ... doesn't contain upstream HEAD'. Basically, I cannot push, each time I try to push, I get this error. When I run 'git subrepo status', I can see that I have a correct ref to my remote. It is exactly the same issue as mentioned here (there are steps to reproduce): https://app.bountysource.com/issues/96954870-git-subrepo-push-fails-with-can-t-commit-mysubrepodir-doesn-t-contain-upstream-head-even-after-clean-pull the biggest issue I have, when I pull from the remote, some of my files (paths) get modified, even though in the remote they are not modified. I have to revert them back manually, but on the next pull they get rewritten again. Can someone please help with this?

@Amatewasu
Copy link

Amatewasu commented Feb 2, 2023

Hi, I'm just commenting to let you know that I have the same issue. I didn't figure out why yet.

$ git subrepo version
git-subrepo Version: 0.4.5
Copyright 2013-2020 Ingy döt Net
https://github.com/ingydotnet/git-subrepo
C:\my_path_to_anonymized\git-subrepo\lib\git-subrepo
Git Version: 2.35.1.windows.2

My two cents is that it is related to this issue: #539 ; the .gitrepo file would be not updated properly so our sha1 in this file doesn't point to the HEAD of the branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants